IvanIhnatsiuk / react-native-advanced-input-mask

Text input mask component for React Native
MIT License
24 stars 0 forks source link

fix: focus/blur events don't work on iOS #17

Closed IvanIhnatsiuk closed 2 weeks ago

IvanIhnatsiuk commented 2 weeks ago

📜 Description

Fixed focus/blur events are not firing on iOS. The problem was related to delegates logic, so, before setting the new delegate we needed to put the previous text field delegate to mask the input listener

💡 Motivation and Context

onBlur/onFocus must work

📸 Screenshots (if appropriate):

Before

https://github.com/user-attachments/assets/702c3f86-4bf5-4aa0-a38e-3794111bdc96

After

https://github.com/user-attachments/assets/40a33e66-83bc-4568-af39-0694648d8a75

📝 Checklist