Disable the button if the password is empty, and also handle the
enter button from being pressed within the input field and make sure not
to attempt to disable the thread.
Details
Details
Tested both cases where the button becomes unclickable and
pressing enter within the input field should not submit the contents of
the field
Demo:
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Looks good!
native/chat/settings/delete-thread.react.js | ||
---|---|---|
234 ↗ | (On Diff #17429) | We could probably just drop the Common suffix here. If we do want to include something in the name to indicate that this style is "shared" across different states, we tend to use the word Base elsewhere in the codebase... so maybe deleteButtonBase or baseDeleteButton? Doesn't really matter, up to you |