Added a check in the disabled property of the delete button to
check if there is an password entered into the input field - if not,
disable the button.
Details
Details
Tested on web and it works as expected. Handled cases where the
modal is opened for the first time, and also when a password is deleted.
The button remains disabled whenever the input is empty.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- ENG-1913
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
web/modals/threads/settings/thread-settings-delete-tab.react.js | ||
---|---|---|
113 ↗ | (On Diff #17151) | Nit: I personally would write the case like this, but would love to hear what the other reviewers think |
web/modals/threads/settings/thread-settings-delete-tab.react.js | ||
---|---|---|
113 ↗ | (On Diff #17151) | I'm happy to change it to that - might make evaluation more consistent as opposed to checking with`!` |