InputMask cannot read property 'length' of null

UI Components for React
Post Reply
barrst
Posts: 3
Joined: 14 May 2021, 20:15

14 May 2021, 20:22

Hello:

I'm using your DataTable and wanted to switch some InputText components to InputMask. When I tried, I got the above error. My guess would be it's not set up to take a null value initially.

Uncaught TypeError: Cannot read property 'length' of null
at InputMask.init (InputMask.js:570)
at InputMask.componentDidMount (InputMask.js:634)

ETA:
"primeflex": "^2.0.0",
"primeicons": "^4.1.0",
"primereact": "^6.3.2",

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

14 Jun 2021, 17:03

Hi,

Do you have mask property in InputMask?

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests