Fixed ctrl combinations not working issue

This commit is contained in:
sairaj mote 2023-10-09 13:36:01 +05:30
parent 8293248492
commit fae24c8cbc
2 changed files with 2 additions and 1 deletions

View File

@ -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();

File diff suppressed because one or more lines are too long