title: Ant design confirm modal is not closing on click of Yes and No
body: <p>I'm using Ant design, But Modal is not closing as expected on click of Yes and No. Can Some one help here is the code</p>
  <pre><code>function Study(props) {
  let data=props.data
     const showConfirm=(e,val,view) =&gt;{ debugger
    confirm({
      title: 'Are you sure you want to remove '+val+' from your study list?',
      icon: &lt;ExclamationCircleOutlined /&gt;,
      okText: 'Yes',
      cancelText: 'No',
      onOk:()=&gt;{confirmOk(val,view)},
      onCancel() {
        console.log('Cancel');
      },
    });
  }
   return (
      &lt;div&gt;
        {props.deleteOption &amp;&amp; &lt;img  class=&quot;deleteIcon&quot; src={crossIcon}   onClick={(e)=&gt;showConfirm(e,data.studyName,props.view)}&gt;&lt;/img&gt;}
     &lt;/div&gt;
   )
  
  }
  </code></pre>
  <p>Please some one suggest the solution</p>