File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
src/components/deprecated/Popover Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
"repository" : " https://github.com/coder/coder" ,
5
5
"private" : true ,
6
6
"license" : " AGPL-3.0" ,
7
- "type" : " module" ,
8
7
"scripts" : {
9
8
"build" : " NODE_ENV=production pnpm vite build" ,
10
9
"check" : " biome check --error-on-warnings ." ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
21
21
22
22
type TriggerMode = "hover" | "click" ;
23
23
24
- type TriggerRef = RefObject < HTMLElement > ;
24
+ type TriggerRef = RefObject < HTMLElement | null > ;
25
25
26
26
// Have to append ReactNode type to satisfy React's cloneElement function. It
27
27
// has absolutely no bearing on what happens at runtime
@@ -146,6 +146,7 @@ export const PopoverTrigger: FC<PopoverTriggerProps> = (props) => {
146
146
return cloneElement ( evaluatedChildren , {
147
147
...elementProps ,
148
148
...( popover . mode === "click" ? clickProps : hoverProps ) ,
149
+ // @ts -expect-error – maybe removed from types?
149
150
"aria-haspopup" : true ,
150
151
"aria-owns" : popover . id ,
151
152
"aria-expanded" : popover . open ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments