Skip to content

Commit

Permalink
Merge fbcee21 into 3a7d4de
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Nov 30, 2018
2 parents 3a7d4de + fbcee21 commit 6a4b15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vaadin-password-field.html
Expand Up @@ -130,7 +130,7 @@
this.focusElement.type = 'password';
this.focusElement.autocapitalize = 'off';

this.addEventListener('blur', () => {
this.addEventListener('focusout', () => {
if (!this._passwordVisibilityChanging) {
this._setPasswordVisible(false);
if (this._cachedChangeEvent) {
Expand Down
4 changes: 2 additions & 2 deletions test/password-field.html
Expand Up @@ -48,7 +48,7 @@
revealButton.click();
expect(input.type).to.equal('text');

passwordField.dispatchEvent(new Event('blur'));
passwordField.dispatchEvent(new Event('focusout'));
expect(input.type).to.equal('password');
});

Expand All @@ -58,7 +58,7 @@
function blurField() {
input.blur();
passwordField.dispatchEvent(new CustomEvent('blur'));

passwordField.dispatchEvent(new CustomEvent('focusout'));
}

beforeEach(() => {
Expand Down

0 comments on commit 6a4b15c

Please sign in to comment.