mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(skin): temporarily hide the caption button (#629)
This commit is contained in:
@@ -25,6 +25,8 @@ const CaptionButtonDataAttrs = {
|
||||
|
||||
export interface CaptionsButtonProps extends UIComponentProps<'button', CaptionsButtonState>, CaptionButtonCoreProps {}
|
||||
|
||||
const DEBUG = false;
|
||||
|
||||
/**
|
||||
* A button that toggles captions.
|
||||
*
|
||||
@@ -56,6 +58,8 @@ export const CaptionsButton = forwardRef(function CaptionsButton(
|
||||
isDisabled: () => disabled ?? false,
|
||||
});
|
||||
|
||||
if (!DEBUG) return null;
|
||||
|
||||
return renderElement(
|
||||
'button',
|
||||
{ render, className, style },
|
||||
|
||||
Reference in New Issue
Block a user