Open Wacil23 opened 1 month ago
Hi @Wacil23. Is your intent to keep the placeholder after user click? If so, I can try to add functionality to have placeholder text at all times until there is some text present in the text input. Let me know if this would be helpful.
Hey @OvidijusParsiunas , It would be very cool !
Sounds good. I am currently on vacation and will be back home in a couple of days. I will start the work for this then. Thankyou!
Hi @Wacil23.
I have explored this further and have decided that displaying the placeholder text when there is no text input should be the default behaviour. This is motivated by the observed chat behaviour in ChatGPT, Gemini, Slack and Facebook chats.
I have made the changes and published them in the deep-chat-dev
and deep-chat-react-dev
packages version 9.0.188
. These packages behave the same as the main ones except their names are different. You can use these packages now and the code update will be added to the main packages on the next release. The date for the next release has not been decided yet but I will update the thread when I have any more news.
Thanks!
textInput doesn't provide an onBlur function in order to display a placeholder after blur on the input text... What would be good is to be able to do somethig like :
inputText.onBlur : { styles: {....} placeholder: {...} }