Comments (2)
Looks like the example needs the following condition for the root props to be passed:
{...getReferenceProps({
...(isNested
? parent.getItemProps({
...props,
onClick: (event: React.MouseEvent<HTMLButtonElement>) => {
console.log("props CLICK");
props.onClick?.(event);
},
onFocus(event: React.FocusEvent<HTMLButtonElement>) {
console.log("props FOCUS");
props.onFocus?.(event);
setHasFocusInside(false);
parent.setHasFocusInside(true);
},
})
: props),
})}
from floating-ui.
Ah! It's so obvious once you've pointed it out, lol. Thank you for the quick response, works great now :D
from floating-ui.
Related Issues (20)
- Unnecessary autoUpdate when content changes through animation HOT 1
- @floating-ui/react: Using `restMs` option for `useHover` causes SyntheticEvent warning on React 16
- can't work with antd modal HOT 1
- React Select component example not working in native dialog HOT 4
- Missing fade out animation when FloatingArrow used with FloatingDelayGroup HOT 1
- incorrect positioning with fixed ancestors + shadow DOM + parent overflow: hidden + `shift`/`autoPlacement` modifiers HOT 1
- Hide Middleware Not Hiding Panel When Reference Element Off-Screen (Shadow DOM Components) HOT 4
- 0.26.18: TS type check error - declares 'Derivable' locally, but it is not exported HOT 1
- `size` with `flip` for dynamic content: placement is sometimes incorrect HOT 1
- Incorrect positioning when inside a Web Component slot, with a container that has a backdrop-filter HOT 7
- 'toValue' was not found in 'vue-demi' HOT 3
- Absolutely positioned child with negative transforms always takes the top space and gets clipped off HOT 1
- Cannot read properties of undefined (reading 'current') HOT 3
- Button in Popover getting focus visible on hover HOT 1
- Memory leak when autoUpdate iframe gets swapped out HOT 3
- Calculate Position does not work for child elements of container-type: inline-size HOT 4
- Incorrect Popover positioning at rotating in Browser DevTools HOT 3
- Incorrect positioning if inside a dialog with transform: translateX and translateY applied
- FloatingFocusManager modal still allows functionality on outside elements HOT 1
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 floating-ui.