Browse Source

fix(nc-gui): save currency issue in safari

pull/7589/head
աɨռɢӄաօռɢ 10 months ago
parent
commit
80c489221e
  1. 6
      packages/nc-gui/components/cell/Currency.vue

6
packages/nc-gui/components/cell/Currency.vue

@ -84,15 +84,15 @@ const submitCurrency = () => {
}
const onBlur = () => {
// triggered by events like forcus-out / pressing enter
// triggered by events like focus-out / pressing enter
// for non-firefox browsers only
submitCurrency()
}
const onKeydownEnter = () => {
// for firefox, onBlur is never executed
// onBlur is never executed for firefox & safari
// we use keydown.enter to trigger submitCurrency
if (/Firefox/.test(navigator.userAgent)) {
if (/(Firefox|Safari)/.test(navigator.userAgent)) {
submitCurrency()
}
}

Loading…
Cancel
Save