Skip to content

Commit

Permalink
MDL-77883 forms: fix display of client-side validation for textareas
Browse files Browse the repository at this point in the history
  • Loading branch information
danghieu1407 committed Apr 24, 2023
1 parent 4e632b7 commit 678fb7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion theme/boost/amd/build/form-display-errors.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion theme/boost/amd/build/form-display-errors.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion theme/boost/amd/src/form-display-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ define(['jquery', 'core_form/events'], function($, FormEvent) {
const feedbackIndex = describedByIds.indexOf(feedbackId);

// Sometimes (atto) we have a hidden textarea backed by a real contenteditable div.
if (($(element).prop("tagName") == 'TEXTAREA') && parent.find('[contenteditable]')) {
if (($(element).prop("tagName") == 'TEXTAREA') && parent.find('[contenteditable]').length > 0) {
element = parent.find('[contenteditable]');
}
if (msg !== '') {
Expand Down

0 comments on commit 678fb7d

Please sign in to comment.