input: don't submit value when leaving focus (even with Tab key)
This commit is contained in:
parent
d521f0d260
commit
39ae150a81
2 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ module.exports = class Input extends _canvas_base {
|
|||
.prependTo(this.widget)
|
||||
.focus()
|
||||
.on('blur', (e)=>{
|
||||
this.blur()
|
||||
this.blur(false)
|
||||
})
|
||||
.on('keydown', (e)=>{
|
||||
if (e.keyCode==13) this.blur()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue