Skip to content
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

Question Title Validation Happens Twice in Authoring Page #47

Open
1 task
noce2 opened this issue Jul 30, 2020 · 0 comments
Open
1 task

Question Title Validation Happens Twice in Authoring Page #47

noce2 opened this issue Jul 30, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@noce2
Copy link
Contributor

noce2 commented Jul 30, 2020

The question authoring page uses a custom asynchronous validator to check whether question title already exists when a user typs one into the form. The validation is supposed to happen only once for each typed value. It currently runs twice. Once when the question title is typed into its input and again when the submit event is fired. This can be observed by placing a breakpoint in the onSubmit method of the question-authoring-page.component.ts and in the operator within the validator itself.

This validation should only occur once so the purpose of this bug ticket is to fix that.

  • The asynchronous custom validator for question titles runs only once, rather than again when the submit event is fired.

A reference app here seem not to have the same issue.

@noce2 noce2 added the bug Something isn't working label Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant