@neovici/cosmoz-input
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,8 @@ | ||
### [1.0.3](https://github.com/neovici/cosmoz-input/compare/v1.0.2...v1.0.3) (2021-01-25) | ||
### Bug Fixes | ||
* improve maintain focus ([a94d764](https://github.com/neovici/cosmoz-input/commit/a94d764c452509b03e13103866c4e7376d9b3f0d)) | ||
### [1.0.2](https://github.com/neovici/cosmoz-input/compare/v1.0.1...v1.0.2) (2021-01-25) | ||
@@ -2,0 +9,0 @@ |
@@ -109,5 +109,6 @@ import { html, nothing } from 'lit-html'; // eslint-disable-line object-curly-newline | ||
} | ||
host.matches(':focus-within') // if input focused | ||
? e.preventDefault() // don't blur | ||
: focus(); // focus input | ||
e.preventDefault(); // don't blur | ||
if (!host.matches(':focus-within')) { // if input not focused | ||
focus(); // focus input | ||
} | ||
}; | ||
@@ -114,0 +115,0 @@ |
{ | ||
"name": "@neovici/cosmoz-input", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A input web component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10111
215