mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +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' },
|
{ value, format: 'number' },
|
||||||
eventToHTMLElement(ev),
|
eventToHTMLElement(ev),
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res !== undefined) value = res
|
if (res !== undefined) {
|
||||||
onChange(value)
|
value = res
|
||||||
|
onChange(value)
|
||||||
|
}
|
||||||
shown = false
|
shown = false
|
||||||
},
|
},
|
||||||
(res) => {
|
(res) => {
|
||||||
|
@ -43,8 +43,10 @@
|
|||||||
{ value },
|
{ value },
|
||||||
eventToHTMLElement(ev),
|
eventToHTMLElement(ev),
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res !== undefined) value = res
|
if (res !== undefined) {
|
||||||
onChange(value)
|
value = res
|
||||||
|
onChange(value)
|
||||||
|
}
|
||||||
shown = false
|
shown = false
|
||||||
},
|
},
|
||||||
(res) => {
|
(res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user