I am using webswitch to show two states(male/female). But whenever I click on that switch, hasfocus() is returning false for the first click and from second click hasfocus()