[FluentSlider] [FluentNumberField] Fix #2948#3077
Merged
vnbaaij merged 9 commits intomicrosoft:devfrom Dec 27, 2024
Merged
Conversation
Contributor
Author
|
I've fixed the unit test by easing the BUnit JSInterop mode. I'm not sure if that breaks any testing conventions. Should this be split into two PRs? One for |
Contributor
Author
|
Found another issue with my fix for When typing directly into the control, it would flicker and lose the change. |
dvoituron
requested changes
Dec 23, 2024
dvoituron
approved these changes
Dec 27, 2024
Collaborator
dvoituron
left a comment
There was a problem hiding this comment.
Next time, please create one PR to fix one problem. This makes it easier to maintain the code.
Thank you :-)
vnbaaij
approved these changes
Dec 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
📖 Description
Fixes issues reported in #2948. Two issue reported both related to changing the value of the control programatically.
🎫 Issues
The underlying issue is that the web components being wrapped were designed to have there states only changed interactively.
bind-valuedoes not behave as expected. Inward binding works only on for initialization. Outward binding works as expected.This gives the appearance of a sync issue.
👩💻 Reviewer Notes
FluentSlider- #2665 did not fully fix #2609. The original fix was to prevent the flickering when the slider was moved rapidly originally reported. I was not able to reproduce this problem with the current implementation ofFluentDataGrid. I did end up adding debouncing with theDebounceAction. I believe I did this correctly.FluentNumberField- The fix was to ensure the underlying web component reflected the correct value. I could not find a way of distinguishing if the value was changed by manipulating the control or if it was changed programatically. I opted to use some javascript to force the value in the web component. I also added aDisposeAsync. It was missing.I've also included an
issue-testerpage as part of this draft📑 Test Plan
✅ Checklist
General
Component-specific