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

[Ionic v4.0.0-beta.8] Range doesn't update when passing new min/max values #15511

Closed
alesgenova opened this issue Sep 8, 2018 · 1 comment
Closed
Labels

Comments

@alesgenova
Copy link
Contributor

Bug Report

Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.

v4.0.0-beta.8

Describe the Bug
When dynamically updating the min and max props of a range, the component is not updated correctly. This can be shown easily by connecting the min or max to the value of another range (see code below)

Related Code

<body>
  <ion-list>    
    <ion-item>
      <ion-range min="0" value="0" max="50" id="minRange"></ion-range>
    </ion-item>
    <ion-item>
      <ion-range min="0" value="50" max="100" id="targetRange"></ion-range>
    </ion-item>
  </ion-list>

  <script>
    const minRange = document.getElementById('minRange');
    const targetRange = document.getElementById('targetRange');

    minRange.addEventListener('ionChange', function(ev) {
      targetRange.min = ev.detail.value;
    })
  </script>
</body>
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 13, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant