xatkit-bot-platform / xatkit-chat-widget

(React) Chat widget for Xatkit
https://xatkit.com
MIT License
6 stars 2 forks source link

Change input placeholder text when buttons are displayed #26

Closed gdaniel closed 4 years ago

gdaniel commented 4 years ago

The placeholder should contain something like "Select a button".

hamzaed commented 4 years ago

I'm still not sure if text inputs and buttons should be mutually exclusives. In some scenarios buttons could be used as shortcut but users can still write down something.

Maybe this should be configurable.

jcabot commented 4 years ago

Ideally, yes. We should be able to configure whether for a given button we want to let open the user input (e.g., not for YES/NO button but maybe for a help one that displays buttons with options and the user may prefer to skip any of them and try again with a text)

But this may be complicated. If so, I'd stick to make them mutually exclusive

hamzaed commented 4 years ago

For now they'll mutually exclusive.

jcabot commented 4 years ago

Anyway, the discussion whether this should be configurable is already in issue #27