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

Check for invalid range in DynamicRangeSlider (Vue) #2250

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

Jade-GG
Copy link
Contributor

@Jade-GG Jade-GG commented Oct 6, 2023

The DynamicRangeSlider doesn't hide itself when the range is invalid. Currently it will:

  • Show null as the range start and end if the variable is not relevant in the current aggregate (imagine there's an online store called Books&Bikes, and it's trying to show a "book page count" slider while only searching for bikes). Trying to "use" this broken slider causes some unexpected behavior.
  • Have a range where the start and end are the exact same, making this slider irrelevant and also have some unexpected behavior.

This change causes the slider to not render itself in these scenarios.

Copy link
Member

@mohdashraf010897 mohdashraf010897 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@mohdashraf010897 mohdashraf010897 merged commit 09fec0b into appbaseio:next Nov 21, 2023
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

Successfully merging this pull request may close these issues.

2 participants