-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix input field not disabled while a comment is being sent #7266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix input field not disabled while a comment is being sent #7266
Conversation
Since the change of the text area to a content editable div the input field was no longer disabled while a new comment was being sent. It was caused by still trying to disable the div using the "disabled" property, which works only on real input fields; when using a content editable div the way to disable it is by setting "contenteditable" to "false". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #7266 +/- ##
============================================
- Coverage 50.86% 50.86% -0.01%
Complexity 24550 24550
============================================
Files 1585 1585
Lines 93811 93811
Branches 1354 1354
============================================
- Hits 47717 47716 -1
- Misses 46094 46095 +1
|
MorrisJobke
left a comment
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.
Tested and works 👍
I would keep the CSS for now. We could refactor later, but it is okay from my side.
See my inline comment 😉 |
|
@jancborchardt @pixelipo @skjnldsv Other opinions? |
LukasReschke
left a comment
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.
Works nicely 👍
Fixes #7240
Pending: @nextcloud/designers CSS masters, please amend and force push again the last commit :-) It is an ugly copy paste, so there are several duplicated and overriden rules ;-)