26
Views
3
Comments
[Input Mask React] Bug in mask text when an input already had a value
inputmask-react
Reactive icon
Forge asset by João Barata
Application Type
Reactive

Hi everyone.


I use the mask text from this component but found a bug. When user open the form screen and want to delete value in the input widget directly then click the save button, the old value is appear again in the input form instead a blank value (empty string). And when user click save again, the value appear in the form will submitted to the database. I attach the OML file for more detail.

Please help,
Thank you.

TestMaskText.oml
2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Muhamad Jordi ,

I have done some changes in your OML for Name input field .We have edit logic inside the save action the same you can do it for other field also.

in the property section of input field also add one condition.

Regards,

Rajat

TestMaskText.oml
UserImage.jpg
Muhamad Jordi

Hi Rajat,

Thank you for your response.

But we need the input field is mandatory. The problem is, why the old value appear again after we delete it. Here I put a video, hope you understand what I mean.

https://vioo.cc/v/OJ1V

Thank you.

2020-07-21 19-28-50
Rajat Agrawal
Champion

But we are removing value from browser not from DB when you removed your value from input box at that time we are not calling entity delete action to delete data it is just removing from text box not from DB.

Regards

Rajat

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.