File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -470,14 +470,14 @@ async function getAnchorEl(
470
470
const customPropName = anchorObj . customPropName ;
471
471
if ( targetEl && ! anchorName ) {
472
472
const anchorAttr = targetEl . getAttribute ( 'anchor' ) ;
473
- if ( customPropName ) {
473
+ if ( targetEl . dataset [ POSITION_ANCHOR_DATASET_KEY ] ) {
474
+ anchorName = targetEl . dataset [ POSITION_ANCHOR_DATASET_KEY ] ;
475
+ } else if ( customPropName ) {
474
476
anchorName = getCSSPropertyValue ( targetEl , customPropName ) ;
475
477
} else if ( anchorAttr ) {
476
478
return await validatedForPositioning ( targetEl , [
477
479
`#${ CSS . escape ( anchorAttr ) } ` ,
478
480
] ) ;
479
- } else if ( targetEl . dataset [ POSITION_ANCHOR_DATASET_KEY ] ) {
480
- anchorName = targetEl . dataset [ POSITION_ANCHOR_DATASET_KEY ] ;
481
481
}
482
482
}
483
483
const anchorSelectors = anchorName ? anchorNames [ anchorName ] ?? [ ] : [ ] ;
You can’t perform that action at this time.
0 commit comments