-
Notifications
You must be signed in to change notification settings - Fork 601
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: sliders mouseup is not firing when leaving the window #5184
Conversation
β¦.com/microsoft/fast into users/robarb/tests-horizontal-scroll
β¦/robarb/tests-horizontal-scroll
β¦.com/microsoft/fast into users/robarb/tests-horizontal-scroll
β¦/robarb/slider-mouseup
are the horizonal scroll changes related to the slider issue? |
# Pull Request ## π Description Adding the file component to creator as a StandardControlPlugin for the "src" attribute. This replaces the image src text box in the right side form with a File component button configured to allow image file types (.jpg, .png, .gif). Clicking the button will open a file picker and when an image is selected it is converted to an ObjectUrl which is used for the image src. *Note: Images added in this way are stored only on the client and only last for the session. No data about the file is transmitted or available outside of the client nor does it utilize cookies in any way. <!--- Provide some background and a description of your work. What problem does this change solve? Is this a breaking change, chore, fix, feature, etc? --> ### π« Issues <!--- * List and link relevant issues here. --> ## π©βπ» Reviewer Notes <!--- Provide some notes for reviewers to help them provide targeted feedback and testing. Do you recommend a smoke test for this PR? What steps should be followed? Are there particular areas of the code the reviewer should focus on? --> ## π Test Plan <!--- Please provide a summary of the tests affected by this work and any unique strategies employed in testing the features/fixes. --> ## β Checklist ### General <!--- Review the list and put an x in the boxes that apply. --> - [ ] I have included a change request file using `$ yarn change` - [ ] I have added tests for my changes. - [x] I have tested my changes. - [ ] I have updated the project documentation to reflect my changes. - [x] I have read the [CONTRIBUTING](https://github.com/Microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://www.fast.design/docs/community/code-of-conduct/#our-standards) for this project. ### Component-specific <!--- Review the list and put an x in the boxes that apply. --> <!--- Remove this section if not applicable. --> - [ ] I have added a new component - [ ] I have modified an existing component - [ ] I have updated the [definition file](https://github.com/Microsoft/fast/blob/master/packages/web-components/fast-components/CONTRIBUTING.md#definition) - [ ] I have updated the [configuration file](https://github.com/Microsoft/fast/blob/master/packages/web-components/fast-components/CONTRIBUTING.md#configuration) ## β Next Steps <!--- If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next. -->
β¦ssing values are not hidden or missed (#5030) * remove css color assignment from body of storybook to ensure there missing values are not hidden or missed * Change files
* chore: eslint fixes in fast-components * Change files Co-authored-by: Chris Holt <chhol@microsoft.com>
β¦/robarb/slider-mouseup
β¦osoft/fast into users/robarb/slider-mouseup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something got messed up with the commit history on this PR. can you fix that before merging?
β¦/robarb/slider-mouseup
β¦osoft/fast into users/robarb/slider-mouseup
Another PR got merged some how. I've undone the errant changes |
Fixed this. I've removed the horizontal-scroll changes that some how got merged into this PR. |
@robarbms FYI - looks like there are a couple of conflicts with the Horizontal Scroll changes going in. |
There was a whitespace conflict π |
It looks like git history got messed up on this, would you mind resolving prior to merge? |
this.value = `${this.calculateNewValue(controlValue)}`; | ||
/** | ||
* | ||
* @param e - MouseEvent or null. If there is no event handler it will remove the events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param e - MouseEvent or null. If there is no event handler it will remove the events | |
* @param e - MouseEvent or null. If null is provided, events handlers will be removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved pending the git commit history being cleaned up.
Pull Request
π Description
When leaving the window, the slider will not register a mouseup event.
π« Issues
#4825
π©βπ» Reviewer Notes
I'm capturing mouseleave on the window document. I found that mouseout fired while still in the window. Perhaps it's firing for the shadow DOMs mouseout? The window element wouldn't fire on mouseleave so I'm using window.document. I attach it on mousedown and remove it on mouseup per the existing pattern.
π Test Plan
β Checklist
General
$ yarn change
Component-specific
β Next Steps