mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Cancel edit in number and string editors. (#1764)
This commit is contained in:
parent
2defbc434b
commit
a1c298ebca
@ -43,8 +43,10 @@
|
||||
{ value, format: 'number' },
|
||||
eventToHTMLElement(ev),
|
||||
(res) => {
|
||||
if (res !== undefined) value = res
|
||||
onChange(value)
|
||||
if (res !== undefined) {
|
||||
value = res
|
||||
onChange(value)
|
||||
}
|
||||
shown = false
|
||||
},
|
||||
(res) => {
|
||||
|
@ -43,8 +43,10 @@
|
||||
{ value },
|
||||
eventToHTMLElement(ev),
|
||||
(res) => {
|
||||
if (res !== undefined) value = res
|
||||
onChange(value)
|
||||
if (res !== undefined) {
|
||||
value = res
|
||||
onChange(value)
|
||||
}
|
||||
shown = false
|
||||
},
|
||||
(res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user