-
-
Notifications
You must be signed in to change notification settings - Fork 832
Improve handling of the disabled state of the save button in the edit message composer #8601
Conversation
d869c67
to
3a5e4c0
Compare
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
e72eb01
to
b0fc96a
Compare
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This was done intentionally to begin with, the Save button felt weird being enabled & re-disabled, so the Save action itself actually skipped sending the event edit if there was no change in the end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a surprising amount of code change for a relatively mundane feature - will wait for design to provide feedback before reviewing this.
(I raised this issue)
This behaviour is fine by me, I would even say it makes sense. However the part where the save action skips sending should also apply to keyboard navigation, i.e. should prohibit dismissing via up/down arrows only when the message is actually edited. |
See my message on the issue about why I closed it. I also want to address this comment. I think if I am navigating with up/down and then edit a message, and then undo, I don't want up/down to move me away, for the same reasons as I gave in the issue: it adds a mental burden on me to understand the different behaviour, just because my edits ended up having no effect. |
Closing this PR since I close the related issue. Thank you for your work on this! |
Fixes element-hq/element-web#22207
Peek.2022-05-15.09-41.mp4
Here's what your changelog entry will look like:
✨ Features