File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ export const SelectContainer = <
3131 const initialStyles : SystemStyleObject = {
3232 position : "relative" ,
3333 direction : isRtl ? "rtl" : undefined ,
34- // When disabled, react-select sets the pointer-state to none which prevents
35- // the `not-allowed` cursor style from chakra from getting applied to the
36- // Control when it is disabled
37- pointerEvents : "auto" ,
34+ ...( isDisabled ? { cursor : "not-allowed" } : { } ) ,
3835 } ;
3936
4037 const sx : SystemStyleObject = chakraStyles ?. container
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ const Control = <
5050 overflow : "hidden" ,
5151 height : "auto" ,
5252 minHeight : heights [ size as Size ] ,
53+ ...( isDisabled ? { pointerEvents : "none" } : { } ) ,
5354 } ;
5455
5556 const sx : SystemStyleObject = chakraStyles ?. control
You can’t perform that action at this time.
0 commit comments