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

Fix group slider triggering change, fixes #789 #1001

Merged
merged 1 commit into from Apr 18, 2021
Merged

Conversation

hubsif
Copy link
Contributor

@hubsif hubsif commented Apr 16, 2021

Explanation:
Even with integer steps only for each member, a group can become a floating number (e.g. avg. 3 and 4 resulting in 3.5). The computed value then is the floating number, which is different from the rounded slider value.

Adjusting toStepFixed to always compute and value to be rounded for the comparison in onChange seemed to be enough to fix this.

I wasn't able to find any relation to "rollershutters" like mentioned in #894, which has been closed as duplicate.

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
@hubsif hubsif requested a review from a team as a code owner April 16, 2021 16:48
@relativeci
Copy link

relativeci bot commented Apr 16, 2021

Job #77: Bundle Size — 10.45MB (-0.02%).

0840f03 vs 70def48

Changed metrics (2/8)
Metric Current Baseline
Initial JS 1.61MB(~+0.01%) 1.61MB
Cache Invalidation 21.14% 2.58%
Changed assets by type (1/7)
            Current     Baseline
JS 8.12MB (-0.03%) 8.12MB

View Job #77 report on app.relative-ci.com

Copy link
Member

@ghys ghys left a comment

Choose a reason for hiding this comment

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

LGTM

@ghys ghys merged commit dd6e756 into openhab:main Apr 18, 2021
@ghys ghys added bug Something isn't working main ui Main UI labels Apr 18, 2021
@ghys ghys added this to the 3.1 milestone Apr 18, 2021
@hubsif hubsif deleted the fix_789 branch April 20, 2021 19:11
hubsif added a commit to hubsif/openhab-webui that referenced this pull request May 6, 2021
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants