Skip to content

Problem with method setValue in google places. #301

@JordiGiros

Description

@JordiGiros

Some pages that use google places in their inputs delete their values when losing focus from the element. When the setValue method is called, his behaviour makes the input lose the focus and the place can't be selected because the value typed is lost. That makes some test to crash.

The problem seems to be related to the "Prevent firing the "change" event twice" problem.
Some time ago, the method used a TAB added after the value that was making the problem happen too.
It was solved #244 deleting the TAB but then the problem returned with #286.

After reading lots of problems related with this two behaviours of setValue method (causing problems in each type of solutions), why can a parameter be passed to the method in order to use it with or without losing focus?

Is there any alternative to set the value without losing the focus from input?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions