fix(skin): temporarily hide the caption button (#629)

This commit is contained in:
Sam Potts
2026-02-27 10:04:35 +11:00
committed by GitHub
parent 8b5e588248
commit 0666d526b1
2 changed files with 12 additions and 8 deletions
@@ -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 },