composeuisuite / ohteepee

A Simple, Customizable, Easy-to-use OTP/Pin Jetpack Compose Library
Apache License 2.0
142 stars 9 forks source link

User cannot type char that is equals to placeholder char #19

Closed mkowol-n closed 4 months ago

mkowol-n commented 4 months ago

Hi, in the handleCellInputChange we have something like this: val formattedNewValue = newValue.replace(placeHolder, String.EMPTY) .replace(obscureText, String.EMPTY)

Is the method for replace placeholder really needed? Currently in my project i need to have placeholder set as "0", but i need to allow user to type "0" in the cell. This function blocks user for typing "0" because this input char is removed

ilyasipek commented 4 months ago

Yep, I guess it was used for something else but it's not needed anymore. it's now fixed in 1.0.8. Please check it out and thanks for your feedback 🙏.