Fixed ctrl combinations not working issue
This commit is contained in:
parent
8293248492
commit
fae24c8cbc
1
components/dist/input.js
vendored
1
components/dist/input.js
vendored
@ -461,6 +461,7 @@ customElements.define('sm-input',
|
||||
}
|
||||
}
|
||||
allowOnlyNum = (e) => {
|
||||
if (e.ctrlKey) return;
|
||||
if (e.key.length === 1) {
|
||||
if (e.key === '.' && (e.target.value.includes('.') || e.target.value.length === 0)) {
|
||||
e.preventDefault();
|
||||
|
||||
2
components/dist/input.min.js
vendored
2
components/dist/input.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user