Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Spinner value doesn't update on subsequent out-of-range entered values #187

@genesisjschubert

Description

@genesisjschubert

Description

Typing a value into the spinner that's outside the min/max range a second, third, etc time does not update the spinner to the corresponding min/max value. The first time the invalid value is entered, the slider and spinner are both correctly updated to the appropriate min/max value. But entering the same or a different invalid value on the same side (min or max) will not cause the spinner value to revert back to the max. It simply remains whatever was typed.

Expected outcome

Every time a value outside the min/max range is entered, the spinner value should update to the appropriate min/max value

Actual outcome

After the first time an invalid value is entered, subsequent entries on the same extreme do not update the spinner to the appropriate min/max value

Live Demo

Can be reproduced as of 4/22/2017 on Polymer's demo page: https://www.webcomponents.org/element/PolymerElements/paper-slider/demo/demo/index.html

Steps to reproduce

  1. Create a paper-slider with a min and/or max value constraint
  2. View the slider
  3. Type a value into the spinner that is greater than the max or less than the min value
  4. Hit enter or click away and notice the spinner value correctly changes to the corresponding min/max value.
  5. Type another invalid value on the same extreme/end as before
  6. Hit enter or click away and notice the spinner value incorrectly does not change to the correct min/max value. It simply remains what was entered.

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