viclafouch / mui-tel-input

📌 A phone number input designed for MUI (Material ui) V6 built with libphonenumber-js
https://viclafouch.github.io/mui-tel-input
MIT License
158 stars 65 forks source link

Material UI tel input does not work in Safari browser versions 12, 13 and 14 #150

Closed olegyahont15 closed 2 months ago

olegyahont15 commented 2 months ago

I constantly get this error: TypeError undefined is not a constructor (evaluating 'new Intl.DisplayNames(B,{type:"region"})') when I use Safari browser (versions 12, 13 and 14) Possibly it happens here - _/nodemodules/mui-tel-input/dist/mui-tel-input.es.js

try {
    return new Intl.DisplayNames(t, {
      type: "region"
    });
  } catch (n) {
    return L(n), new Intl.DisplayNames(pt, {
      type: "region"
    });
  }
}
const Bn = ({

Has anyone encountered problems with this library on older Safari browsers?

P.S. Also doesn't work on Chrome 80 and Chrome Mobile 74

viclafouch commented 2 months ago

This library does not support old browsers. Sorry.