docs: fix colorPicker could not open (#41356)

pull/37978/head^2
MadCcc 2 years ago committed by GitHub
parent 822dec20a4
commit 18266ae336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,7 +115,12 @@ export default function ColorPicker({ value, onChange }: RadiusPickerProps) {
} }
}} }}
> >
<input type="radio" name={picker ? 'picker' : 'color'} tabIndex={picker ? -1 : 0} /> <input
type="radio"
name={picker ? 'picker' : 'color'}
tabIndex={picker ? -1 : 0}
onClick={(e) => e.stopPropagation()}
/>
</label> </label>
); );
@ -128,7 +133,7 @@ export default function ColorPicker({ value, onChange }: RadiusPickerProps) {
<DebouncedColorPanel color={value || ''} onChange={(c) => onChange?.(c)} /> <DebouncedColorPanel color={value || ''} onChange={(c) => onChange?.(c)} />
} }
trigger="click" trigger="click"
showArrow={false} arrow={false}
> >
{colorNode} {colorNode}
</Popover> </Popover>

Loading…
Cancel
Save