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

(WebDriverIO) Can't clear the value #348

Open
chrux opened this issue Apr 1, 2020 · 3 comments
Open

(WebDriverIO) Can't clear the value #348

chrux opened this issue Apr 1, 2020 · 3 comments

Comments

@chrux
Copy link

chrux commented Apr 1, 2020

Hi,

We're using this component in a project and we're doing e2e testing but when we try to set the value to empty, we're not able to, we set the $('.tab-pane.active form input[name="phone"]').clearValue() but value is not empty. We also tried setting the value to an empty string ("") or undefined, nothing works, even the onChange method is not triggered.

Thanks for your help

@chrux
Copy link
Author

chrux commented Apr 1, 2020

By the way, setting the value the first time (when is empty) works ok, after that we cannot change the value correctly though.

@catamphetamine
Copy link
Owner

Hi.

This could potentially be related to input-format that's used by default.
See if smartCaret={false} behaves differently.

I didn't test this library in someting like the scenario you're describing, so you could also provide a minimal demo reproducing the issue, though it's not guaranteed to be fixed afterwards.

@chrux
Copy link
Author

chrux commented Apr 2, 2020

Ok, I tested this, it didn't work but thanks for your help.

@catamphetamine catamphetamine changed the title Issue with WebDriverIO [WebDriverIO] Issue with WebDriverIO Jun 20, 2021
@catamphetamine catamphetamine changed the title [WebDriverIO] Issue with WebDriverIO [WebDriverIO] Can't clear the value Jun 20, 2021
@catamphetamine catamphetamine changed the title [WebDriverIO] Can't clear the value (WebDriverIO) Can't clear the value Jun 20, 2021
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

No branches or pull requests

2 participants