You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Several users have brought up request for feature of allowing input validation to be done within the input textarea. Currently, the only way to do validation is after user sends the message. It would be great if validation can be done before a user even sends it. The tentative suggested approach is as follows:
Add a new inputValidator attribute to block which accepts 2 properties validator and errorMessage
The validator property will return true or false and if false, then the errorMessage is displayed
Position of the error message is tentatively above chat input container in the form of a small popup bar. The chat input textarea itself should also be outlined in red when error is shown. Upon displaying the error, it should only be dismissed when user make changes to the textarea.
The text was updated successfully, but these errors were encountered:
Hello @tjtanjin if you didn't solve the issue would you please assign me to this issue I am interested to contribute
I liked your repo a friend sent me your Reddit message
thanks
Hey @ehsanullahhaidary, thank you for the interest! I'm actually working on this issue personally as it is likely to be delivered as part of the plugin feature. Apologies that this is one of the issues where it's a little hard to have others help with 😅 There are a few other good-first-issues sitting around so feel free to take a look (or even suggest/create new issues) 😊!
Description:
Several users have brought up request for feature of allowing input validation to be done within the input textarea. Currently, the only way to do validation is after user sends the message. It would be great if validation can be done before a user even sends it. The tentative suggested approach is as follows:
inputValidator
attribute toblock
which accepts 2 propertiesvalidator
anderrorMessage
validator
property will returntrue
orfalse
and iffalse
, then theerrorMessage
is displayedPosition of the error message is tentatively above chat input container in the form of a small popup bar. The chat input textarea itself should also be outlined in red when error is shown. Upon displaying the error, it should only be dismissed when user make changes to the textarea.
The text was updated successfully, but these errors were encountered: