diff --git a/packages/search/index.tsx b/packages/search/index.tsx index ed4fe885d..1c8fcab91 100644 --- a/packages/search/index.tsx +++ b/packages/search/index.tsx @@ -1,5 +1,5 @@ import { use } from '../utils'; -import { emit } from '../utils/functional'; +import { inherit, emit } from '../utils/functional'; import Field from '../field'; // Types @@ -78,10 +78,14 @@ function Search( } }; + const inheritData = inherit(ctx); + delete inheritData.attrs; + return (
{Label()}