Hi Tomas,
What about adding a Boolean to the PasswordHelper that drives the visibility of the two textboxes and the icons, and removing the Events? Then, after clicking the icon, change the boolean value.
Look into the developer's tools to see if the password is visible in cleartext on the page, as you might have an issue if so, depending on your use case.
Go Make It
Hi Marco,
Thanks, could you describe in more details pls?
I have 2 boolean values initialized as False:
Based on "ShowPassword" value, 1 textbox and 1 of the icons will show:
However, first time icon shows is on entering textbox. This changes "ShowIcon" to True via nanoflow. On text box leave, the "ShowIcon" is set back to False and current icon disappears, which is desired. Problem is clicking on Icon to change "ShowPassword" via nanoflow. As icon is outside of textbox, so on leave event is fired first before actual click on icon has chance to happen.