You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably affects all browsers but in my testing calling Placeholders.disable( elem ) removes the placeholder as expected, but subsequently giving the input field focus and then blurring with the mouse restores the placeholder value on the empty field. My expectation of calling Placeholder.disable( elem ) is that placeholder behavior will not return until Placeholder.enable( elem ) is explicitly called. Looking through the code it appears there is no removeEventListener support for focus/blur events and that is what's needed to resolve this issue when calling Placeholder.disable().
The text was updated successfully, but these errors were encountered:
The method is perhaps named badly. It will hide the placeholder for the given element (or all elements if none are passed to it) but not actually "disable" the functionality. Thanks for reporting this... I'd never really considered it! I'll think about the best way to improve it.
This probably affects all browsers but in my testing calling Placeholders.disable( elem ) removes the placeholder as expected, but subsequently giving the input field focus and then blurring with the mouse restores the placeholder value on the empty field. My expectation of calling Placeholder.disable( elem ) is that placeholder behavior will not return until Placeholder.enable( elem ) is explicitly called. Looking through the code it appears there is no removeEventListener support for focus/blur events and that is what's needed to resolve this issue when calling Placeholder.disable().
The text was updated successfully, but these errors were encountered: