From fbb34a0f90e613eaaf9c5b8e1834218d082c8208 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 5 Nov 2019 09:36:25 +0800 Subject: [PATCH] chore: avoid using delete (#4923) --- src/search/index.tsx | 2 +- src/toast/index.js | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/search/index.tsx b/src/search/index.tsx index decc48b4d..5b24de49d 100644 --- a/src/search/index.tsx +++ b/src/search/index.tsx @@ -84,7 +84,7 @@ function Search( }; const inheritData = inherit(ctx); - delete inheritData.attrs; + inheritData.attrs = undefined; return (