diff --git a/src/dropdown.js b/src/dropdown.js index 15ab444..f44dbf2 100644 --- a/src/dropdown.js +++ b/src/dropdown.js @@ -330,6 +330,11 @@ Dropdown.prototype.init = function() { this.pseudoSelectContainer.querySelector('a').addEventListener('focus', function() { this.correspondingNode.classList.add(this.css.pseudoSelectFocus); }.bind(this)); + this.pseudoSelectContainer.querySelector('a').addEventListener('blur', function() { + if(this.optionsContainer.classList.contains('hide')) { + this.correspondingNode.classList.remove(this.css.pseudoSelectFocus); + } + }.bind(this)); this.correspondingNode.addEventListener('focus', function() { this.correspondingNode.classList.remove(this.css.pseudoSelectFocus);