uasoft-indonesia/badaso

Badaso Dashboard Cannot Open In Ios Below 16.6

rizqisyah opened this issue · 2 comments

Describe the bug
Badaso Dashboard Cannot Open In Ios Below 16.6

To Reproduce
Steps to reproduce the behavior:
Go to https://badaso-demo.uatech.co.id/dashboard/login)

Expected behavior
User Can Login And Show Box

Screenshots
https://ibb.co/jTxFYvB

Badaso (please complete the following information):

  • Version [e.g. 2.9.4]

Smartphone (please complete the following information):

  • Device: iPhone 11,11Pro,13,12
  • OS: iOS 16.1,15
  • Browser Safari
  • Version 16,15

@rizqisyah kemungkinan ini disebabkan oleh regex lookbehind assertion di bagian

.replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, data.delimiter);

support di safari browser baru diterapkan mulai versi 16.4, merujuk ke laman mdn web docs di https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookbehind_assertion

Laman login dapat ditampilkan di safari browser dengan menghilangkan bagian (?<!.\d*). Saya belum dapat menemukan case dimana lookbehind dibutuhkan pada contoh demo

@rizqisyah please update your safari browser to 16.4 as @mascang explanation, thanks !