How does the Tag component of antd confirm close twice?

<div> 
  <Tag closable>a</Tag>
  <Tag closable>b</Tag>
  <Tag closable>c</Tag>
</div>

for example, I have the Tag component above. I want to let the user confirm the close twice through the pop-up window before close Tag, but the Tag is deleted by clicking the x button, and there is no such example in the Tag document, and the exposed onClose and afterClose do not seem to support this way

Jul.03,2022

use e.preventDefault (); Ah, the first official example is


there is no other way, it is recommended that you package it twice or write a tag component

yourself.
Menu