Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
fixed: issues with comment widget when linked to date/datetime/time q…
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Jul 29, 2020
1 parent 2c5ee34 commit f889e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/comment/commentwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Comment extends Widget {
_showCommentModal() {
const comment = this.question.cloneNode( true );
const updateText = t( 'widget.comment.update' ) || 'Update';
const input = comment.querySelector( 'input, textarea' );
const input = comment.querySelector( 'input:not(.ignore), textarea:not(.ignore)' );

comment.classList.remove( 'hide' );
input.classList.add( 'ignore' );
Expand Down Expand Up @@ -182,7 +182,7 @@ class Comment extends Widget {
*
* Note that with setting "validateContinously" set to "true" this means it will be validated twice.
*/
this.options.helpers.input.validate( $( this.linkedQuestion.querySelector( 'input, select, textarea' ) ) );
this.options.helpers.input.validate( $( this.linkedQuestion.querySelector( 'input:not(.ignore), select:not(.ignore), textarea:not(.ignore)' ) ) );
ev.preventDefault();
ev.stopPropagation();
} );
Expand Down

0 comments on commit f889e13

Please sign in to comment.