File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @accessible/popover" ,
3- "version" : " 2.0.1 " ,
3+ "version" : " 2.0.2 " ,
44 "homepage" : " https://github.com/accessible-ui/popover#readme" ,
55 "repository" : " github:accessible-ui/popover" ,
66 "bugs" : " https://github.com/accessible-ui/popover/issues" ,
Original file line number Diff line number Diff line change @@ -690,12 +690,8 @@ export interface CloseProps {
690690 children : JSX . Element | React . ReactElement
691691}
692692
693- export const Close : React . FC < CloseProps > = React . forwardRef <
694- JSX . Element | React . ReactElement ,
695- CloseProps
696- > ( ( { children} , ref ) => {
693+ export const Close : React . FC < CloseProps > = ( { children} , ref ) => {
697694 const { close, isOpen, id} = usePopover ( )
698- ref = useMergedRef ( children . props . ref , ref )
699695 const onClick = useCallback (
700696 e => {
701697 close ( )
@@ -710,9 +706,8 @@ export const Close: React.FC<CloseProps> = React.forwardRef<
710706 'aria-expanded' : String ( isOpen ) ,
711707 'aria-label' : children . props [ 'aria-label' ] || 'Close' ,
712708 onClick,
713- ref,
714709 } )
715- } )
710+ }
716711
717712export interface TriggerProps {
718713 on : string
You can’t perform that action at this time.
0 commit comments