Questions tagged [react-aria]
20 questions
0
votes
0 answers
Continue event propagation with react-aria button component
The react-aria library disables event bubbling for buttons. I have a button nested inside a div which acts as a file uploader. When my button is clicked the file explorer doesn't pop up because event bubbling is disabled. How do I continue event…

Brace Sproul
- 593
- 1
- 5
- 15
0
votes
0 answers
React aria merge props causing initial styling to be ignored Next.js TypeScript
When I use react aria's mergeProps to merge button props and then pass to my component it causes it to override (I'm guessing) the initial props, but not all. The background color won't appear but everything else does, and the styling works fine on…

Brace Sproul
- 593
- 1
- 5
- 15
0
votes
1 answer
Switching Classes and Text in React / React Aria
Im switching classes and text with React Aria this way ->
const [toggle, setToggle] = useState(false);
const toggler = () => {
toggle ? setToggle(false) : setToggle(true);
};
{toggle ? "Off" : "On"}{state.isSelected ? "Off" : "On"}
The additional…

mike
- 749
- 2
- 13
- 24
0
votes
0 answers
react-aria and Typescript building a popover component error with value passing
Morning, all.
I have an issue I have been struggling with for a little while. I have been using react-aria to build a popover in Storybook. This popover is built in two components, the first one is the popover itself, this works fine:
import {…

Zack Amin
- 514
- 4
- 12
0
votes
1 answer
Use Menu gives error type is not assignable to type
I want to be able to use the Menu from React Aria Adobe using Typescript and as per the documentation, however I keep getting an error of incompatible types on line:
let state = useTreeState({...props, selectionMode: 'none'});
AND
let {menuProps}…

Dev.D
- 407
- 2
- 4
- 12