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:

  1. click component
  2. navigate away browser tab (i using chrome)
  3. 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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -