-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change #26574
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
Conversation
Asset size changes
Baseline commit: e7adfeaa37370b9aebe79d3a0168d0457822b139 (build) |
📊 Bundle size report🤖 This report was generated against e7adfeaa37370b9aebe79d3a0168d0457822b139 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 54f7aa5:
|
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 1172 | 1179 | 5000 | |
| Breadcrumb | mount | 2924 | 2945 | 1000 | |
| Checkbox | mount | 2641 | 2614 | 5000 | |
| CheckboxBase | mount | 2344 | 2342 | 5000 | |
| ChoiceGroup | mount | 4411 | 4462 | 5000 | |
| ComboBox | mount | 1232 | 1240 | 1000 | |
| CommandBar | mount | 9558 | 9552 | 1000 | |
| ContextualMenu | mount | 13907 | 13998 | 1000 | |
| DefaultButton | mount | 1392 | 1371 | 5000 | |
| DetailsRow | mount | 3433 | 3471 | 5000 | |
| DetailsRowFast | mount | 3423 | 3468 | 5000 | |
| DetailsRowNoStyles | mount | 3282 | 3290 | 5000 | |
| Dialog | mount | 3033 | 3055 | 1000 | |
| DocumentCardTitle | mount | 588 | 577 | 1000 | |
| Dropdown | mount | 3179 | 3211 | 5000 | |
| FocusTrapZone | mount | 1976 | 2011 | 5000 | |
| FocusZone | mount | 1971 | 1900 | 5000 | |
| GroupedList | mount | 51678 | 57628 | 2 | |
| GroupedList | virtual-rerender | 23602 | 24234 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 90781 | 91812 | 2 | |
| GroupedListV2 | mount | 558 | 553 | 2 | |
| GroupedListV2 | virtual-rerender | 545 | 543 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 554 | 546 | 2 | |
| IconButton | mount | 1883 | 1879 | 5000 | |
| Label | mount | 719 | 738 | 5000 | |
| Layer | mount | 4338 | 4250 | 5000 | |
| Link | mount | 832 | 842 | 5000 | |
| MenuButton | mount | 1657 | 1662 | 5000 | |
| MessageBar | mount | 2310 | 2236 | 5000 | |
| Nav | mount | 3228 | 3192 | 1000 | |
| OverflowSet | mount | 1351 | 1367 | 5000 | |
| Panel | mount | 2506 | 2563 | 1000 | |
| Persona | mount | 1325 | 1319 | 1000 | |
| Pivot | mount | 1650 | 1614 | 1000 | |
| PrimaryButton | mount | 1503 | 1501 | 5000 | |
| Rating | mount | 6921 | 6888 | 5000 | |
| SearchBox | mount | 1509 | 1479 | 5000 | |
| Shimmer | mount | 2847 | 2836 | 5000 | |
| Slider | mount | 2086 | 2104 | 5000 | |
| SpinButton | mount | 4650 | 4628 | 5000 | |
| Spinner | mount | 816 | 796 | 5000 | |
| SplitButton | mount | 3094 | 3055 | 5000 | |
| Stack | mount | 831 | 827 | 5000 | |
| StackWithIntrinsicChildren | mount | 2296 | 2292 | 5000 | |
| StackWithTextChildren | mount | 4751 | 4748 | 5000 | |
| SwatchColorPicker | mount | 10309 | 10457 | 5000 | |
| TagPicker | mount | 2617 | 2597 | 5000 | |
| TeachingBubble | mount | 84774 | 84230 | 5000 | |
| Text | mount | 773 | 787 | 5000 | |
| TextField | mount | 1590 | 1574 | 5000 | |
| ThemeProvider | mount | 1533 | 1504 | 5000 | |
| ThemeProvider | virtual-rerender | 1085 | 1078 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 2137 | 2128 | 5000 | |
| Toggle | mount | 1104 | 1085 | 5000 | |
| buttonNative | mount | 533 | 544 | 5000 |
🕵 fluentuiv8 No visual regressions between this PR and main |
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
* master: (93 commits) chore: migrate to jest 27 (microsoft#26835) chore: make lint task run without need of build (microsoft#26872) chore(react-table): exports UseTableSelectionOptions (microsoft#26892) applying package updates fix(react-card): allow elements to grow to fill the available space (microsoft#26616) fix: Popover without focus trap should not be aria-hidden (microsoft#26932) applying package updates applying package updates fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574) fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905) fix: Removing possible recursive loop in Coachmark (microsoft#26934) Combobox: Fix cursor jumping to the end of input (microsoft#26931) Fix missing icons on website (microsoft#26797) fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881) chore: Clean up Input's interactive styles (microsoft#26865) Remove codeowners from change files (microsoft#26935) chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904) docs: Remove testing code from MenuList example (microsoft#26929) chore: refactor SpinButton to use makeResetStyles (microsoft#26867) feat: Set overflow on positioned element when `autosize` is applied (microsoft#26868) ...
…r-component * feat/drawer-base-component: (141 commits) remove DrawerContainer feat: WIP add initial draft for Drawer and DrawerContainer chore: migrate to jest 27 (microsoft#26835) chore: make lint task run without need of build (microsoft#26872) chore(react-table): exports UseTableSelectionOptions (microsoft#26892) applying package updates fix(react-card): allow elements to grow to fill the available space (microsoft#26616) fix: Popover without focus trap should not be aria-hidden (microsoft#26932) applying package updates applying package updates fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574) fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905) fix: Removing possible recursive loop in Coachmark (microsoft#26934) Combobox: Fix cursor jumping to the end of input (microsoft#26931) Fix missing icons on website (microsoft#26797) fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881) chore: Clean up Input's interactive styles (microsoft#26865) Remove codeowners from change files (microsoft#26935) chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904) docs: Remove testing code from MenuList example (microsoft#26929) ...
|
Hi @sopranopillow , I'm using "8.117.5" and I met the same issue about this |
Previous Behavior
When the options of a combobox are filtered,
_getAriaActiveDescendantValuewill break the runtime since thecurrentPendingValueValidIndexis not updated to the latest options.New Behavior
_getAriaActiveDescendantValuenow checks if thecurrentPendingValueValidIndexis not out of bounds and if the selected value is correct. If that's not the case, the value is updated to match the latest options.Related Issue(s)