The ant-design search box listens to the allowClear event alone

1、
Insert picture description here

2. Print in the methodevent.target.tagName

test = (event) => {
    
    
	console.log(event.target.tagName)
}

You will find allowClearand Searchprint out is not the same

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45416217/article/details/113189916