**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](https://codesandbox.io/p/sandbox/7n6yyv) [React 18 codesanbox](https://codesandbox.io/p/sandbox/react-datepicker-mask-forked-9n3tnh) **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. https://github.com/user-attachments/assets/0c9c76d4-853f-48cd-8b95-09aae924185d **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.
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
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):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.