Browse Source

Merge pull request #7589 from nocodb/fix/currency-in-safari

fix(nc-gui): save currency issue in safari
pull/7606/head
Raju Udava 11 months ago committed by GitHub
parent
commit
5f85a81c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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 = () => { const onBlur = () => {
// triggered by events like forcus-out / pressing enter // triggered by events like focus-out / pressing enter
// for non-firefox browsers only // for non-firefox browsers only
submitCurrency() submitCurrency()
} }
const onKeydownEnter = () => { const onKeydownEnter = () => {
// for firefox, onBlur is never executed // onBlur is never executed for firefox & safari
// we use keydown.enter to trigger submitCurrency // we use keydown.enter to trigger submitCurrency
if (/Firefox/.test(navigator.userAgent)) { if (/(Firefox|Safari)/.test(navigator.userAgent)) {
submitCurrency() submitCurrency()
} }
} }

Loading…
Cancel
Save