Skip to content

Doesn't work customInput with mask when use React 18 #5814

@ilchenkoArtem

Description

@ilchenkoArtem

Describe the bug
Can't clear the field when use library of mask when use React 18. The same code works as expected in react 19.

React 19 codesanbox
React 18 codesanbox

To Reproduce

  1. Open codesanbox
  2. Focus to field
  3. Clear typed data by keyboard
  4. Blur field

Expected behavior
Data in field should be cleared as in react 19

Screenshots
If applicable, add screenshots to help explain your problem.

Screen.Recording.2025-08-20.at.14.53.57.mov

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions