Comments (3)
I'm surprised that without a Menu Item that this code is finding a trigger
. Can you share what the trigger is so we can understand how it is both el.getAttribute('role') === this.childRole
and el.menuData === undefined
?
from spectrum-web-components.
handlePointerBasedSelection(event) {
const path = event.composedPath();
const target = path.find((el) => {
if (!(el instanceof Element)) {
return false;
}
console.log("MENU SWC: ", el);
return el.getAttribute("role") === this.childRole;
});
prints out:
<li class="spectrum-Menu-item" tabindex="0" role="menuitem"><span class="spectrum-Menu-itemLabel"><span>Edit version info</span></span></li>
and leads to:
TypeError: Cannot read properties of undefined (reading 'selectionRoot')
at Menu.handlePointerBasedSelection (chunk-SCU35XXF.js?v=c2a8ef54:347:59)
at Menu.handlePointerup (chunk-SCU35XXF.js?v=c2a8ef54:321:10)
at Menu.nrWrapper (chunk-DTJESBZO.js?v=c2a8ef54:71:21)
from spectrum-web-components.
We can add this, but we should make sure we add tests for this case.
from spectrum-web-components.
Related Issues (20)
- [Bug]: Spectrum Switch Not Toggling on Enter Key Press HOT 1
- [Bug]: Slider has accessibility issue when `label-visibility="none"` HOT 5
- [Bug]: dialog grid-area values distorted due to minification configs
- [Feat]: Support iPad Mini in sp-tray delivery
- [Bug]: @spectrum-web-components/contextual-help has no typings HOT 2
- [Bug]: FocusGroup won't set the tabindex=0 on the item focused using mouse HOT 1
- [Bug]: Workflow Icons and UI Icons: some attributes are missing quotation marks
- [Bug]: Picker inside dialog triggers incorrectly sized tray on iOS
- [Bug]: SWC Picker autofocus does not show focus ring when navigating via mouse
- [Bug]: dissmissable attribute on dialog hides slot=button
- [Bug]: [Ipad] Blue focus ring appear on the button after opening/closing ActionMenu component.
- [Bug]: Breadcrumbs missing lit dependency in 0.47.0
- [Bug]: Picker inside dialog registers click to items behind it on iOS
- [Bug]: OverlayTrigger can get stuck in a render loop causing page crash
- [Bug]: Required field label sometimes renders asterisk on next line
- [Bug]: Picker in iOS Safari occasionally selects item 1-2 slots above clicked item HOT 1
- [Bug]: Tabs overflow exceed tabs limit
- [Bug]: Spectrum web component: Progress Bar indeterminate does not animate on Web Views
- Optimizing bundle size HOT 1
- [Bug]: Combobox isn't reflecting selected value when opening via mouse
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spectrum-web-components.