fixes #1057
fix label focussing bug on ios. fixes #1008.
clear off active class when closing. #1089