From 2a4c2d86e97f3226c0369e999dd2a44d770b863e Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 22 Mar 2019 14:13:08 +0800 Subject: [PATCH] [bugfix] Search: should inherit class & style (#3037) --- packages/search/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()}