From 742ebc598c9d76dbe7e8466bdd2ac4ac8e416828 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Fri, 15 Nov 2024 11:38:54 +0800 Subject: [PATCH] feat(checkbox): support title API --- src/common/Check.tsx | 2 -- test/snap/__snapshots__/csr.test.jsx.snap | 4 +++- test/snap/__snapshots__/ssr.test.jsx.snap | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/Check.tsx b/src/common/Check.tsx index 9ec859aa3e..f2a0f07cbc 100644 --- a/src/common/Check.tsx +++ b/src/common/Check.tsx @@ -46,7 +46,6 @@ const Check = forwardRef((_props, ref) => { style, readonly, onClick, - title, ...htmlProps } = props; @@ -75,7 +74,6 @@ const Check = forwardRef((_props, ref) => { checked={internalChecked} disabled={disabled} name={name} - title={title} tabIndex={-1} value={isBoolean(value) ? Number(value) : value} data-value={typeof value === 'string' ? `'${value}'` : value} diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap index a98b95ad25..ab3516e646 100644 --- a/test/snap/__snapshots__/csr.test.jsx.snap +++ b/test/snap/__snapshots__/csr.test.jsx.snap @@ -110762,6 +110762,7 @@ exports[`csr snapshot test > csr test src/table/_example/select-multiple.tsx 1`] >