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

Angular2/4 Forms Model doesn-t get properly updated on element.clear() #4343

Open
teratzul opened this issue Jun 20, 2017 · 5 comments
Open

Comments

@teratzul
Copy link

teratzul commented Jun 20, 2017

Hi there!

It looks like there is a synchronization problem with Angular2(4) Forms when clearing an input field with element.clear().

A detailed description of the issue can be found here.

Best

Bug Report

  • Node Version: v7.8.0
  • Protractor Version: 5.1.0
  • Angular Version: 4.0.0
  • Browser(s): Chrome
  • Operating System and Version Ubuntu 16.10 LTS
@gd46
Copy link

gd46 commented Sep 21, 2017

I have noticed this as well when interacting with WYSIWYG editors. If the editor creates a default content containing a

element clear will remove everything and affect the validity of the editor.

@anasbud
Copy link

anasbud commented Oct 16, 2017

Any solution ?

@stephanme
Copy link

A similar problem existed ~4 years ago.

The workaround #301 (comment) fixed it for me also on angular 5 / protractor 5.2.0.

@MatissJanis
Copy link

This is the "solution" we use:

field.clear();
field.sendKeys(' ');
field.sendKeys(protractor.Key.BACK_SPACE);

@SchnWalter
Copy link

This has been fixed and we also have tests for it, see b93c831

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

6 participants