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

Support skipBlur in the type() user event #1677

Open
tibbe opened this issue Oct 16, 2024 · 3 comments · May be fixed by #1704
Open

Support skipBlur in the type() user event #1677

tibbe opened this issue Oct 16, 2024 · 3 comments · May be fixed by #1704

Comments

@tibbe
Copy link

tibbe commented Oct 16, 2024

Describe the Feature

Add another option to type() that allows for skipping the blur event. This is useful for testing form validation where validation typically happens either onChange or onBlur. Simulate all the typing without leaving the field would be useful in this case.

Possible Implementations

An if at

dispatchEvent(element, 'blur', EventBuilder.Common.blur());
should be enough.

Related Issues

@mdjastrzebski
Copy link
Member

That's an interesting idea, could you submit a PR for this(skipBlur: boolean option for TypeOptions)?

@mrpmohiburrahman
Copy link

That's an interesting idea, could you submit a PR for this(skipBlur: boolean option for TypeOptions)?

Hi, @mdjastrzebski , can I work on this?

@mrpmohiburrahman mrpmohiburrahman linked a pull request Nov 12, 2024 that will close this issue
@mrpmohiburrahman
Copy link

Hi, @mdjastrzebski , plaese, check this pr.

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 a pull request may close this issue.

3 participants