M_Z
M_Z

Reputation: 201

Is there a way to make the OK button of Modal invisible?

Is there a way to make the OK button of Modal invisible?

by using okButtonProps I mean, without the need to use modal.info or customizing a footer.

Upvotes: 1

Views: 390

Answers (1)

Arpit Vyas
Arpit Vyas

Reputation: 2227

yes , you can do it from remove onOk pros like this .

 <Modal
          visible={visible}
          title="Title"
          //onOk={this.handleOk}
          //onCancel={this.handleCancel}
          footer={null}
        >

here is the codesandboxlink for the same .

Link

https://codesandbox.io/s/elated-haibt-zl2ss?file=/index.js:760-927

hope this'll help you !!

Upvotes: 1

Related Questions