Skip to content

Fix input field not disabled while a comment is being sent#7266

Merged
MorrisJobke merged 2 commits into
masterfrom
fix-input-field-not-disabled-while-a-comment-is-being-sent
Nov 27, 2017
Merged

Fix input field not disabled while a comment is being sent#7266
MorrisJobke merged 2 commits into
masterfrom
fix-input-field-not-disabled-while-a-comment-is-being-sent

Conversation

@danxuliu

Copy link
Copy Markdown
Member

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 ;-)

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

codecov Bot commented Nov 23, 2017

Copy link
Copy Markdown

Codecov Report

Merging #7266 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

@@             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
Impacted Files Coverage Δ Complexity Δ
apps/comments/js/commentstabview.js 80.32% <66.66%> (ø) 0 <0> (ø) ⬇️
lib/private/Security/CertificateManager.php 91.08% <0%> (-1%) 39% <0%> (ø)
apps/files_trashbin/lib/Trashbin.php 72.28% <0%> (-0.25%) 136% <0%> (ø)
lib/private/Server.php 83.31% <0%> (+0.11%) 126% <0%> (ø) ⬇️

@MorrisJobke MorrisJobke left a comment

Copy link
Copy Markdown
Member

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.

@MorrisJobke

Copy link
Copy Markdown
Member

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 ;-)

See my inline comment 😉

@MorrisJobke MorrisJobke added 3. to review Waiting for reviews and removed 2. developing Work in progress help wanted labels Nov 27, 2017
@MorrisJobke

Copy link
Copy Markdown
Member

@jancborchardt @pixelipo @skjnldsv Other opinions?

@LukasReschke LukasReschke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants