javascript - Issue in hiding focus styles when an html component is clicked -
i creating input component. better ux, hide focus styles when component clicked (this have done in handler click event). not working in 1 scenario:
- click component
- navigate away browser tab (i using chrome)
- come browser tab
as come page focus event fires on element last focused since click event has not got fired focus styling comes back. did not wanted.
can plz suggest fix this.
use css remove/edit style.
input:focus { box-shadow: none; outline: none; }
Comments
Post a Comment