Skip to content

Conversation

reinhardt
Copy link
Contributor

Fixes #683

@reinhardt reinhardt requested a review from thet August 25, 2020 09:12
@reinhardt reinhardt force-pushed the 683-fix-validation-autosuggest branch from 1ec3d6f to 976a7a4 Compare August 25, 2020 10:09
'<form class="pat-validation">'+
'<input type="hidden" name="name" class="pat-autosuggest" data-pat-autosuggest="words: one, two">'+
'</form>');
$el.submit();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need another pattern.init($el) here?

Copy link
Member

Choose a reason for hiding this comment

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

good catch, yes it does. checked it and added it myself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If yes then we probably also need it in the previous test which I copied this from...

Copy link
Member

Choose a reason for hiding this comment

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

perfect, also added it there.

@thet thet force-pushed the 683-fix-validation-autosuggest branch 2 times, most recently from 1ea4a06 to 5ff0c25 Compare August 25, 2020 11:29
@thet thet force-pushed the 683-fix-validation-autosuggest branch from 5ff0c25 to 89cd4fa Compare August 25, 2020 11:31
Copy link
Member

@thet thet left a comment

Choose a reason for hiding this comment

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

LGTM

@thet thet merged commit c2fc443 into master Aug 25, 2020
@thet thet deleted the 683-fix-validation-autosuggest branch August 25, 2020 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pat-validation ignores "required" on pat-autosuggest

2 participants