0

React Material-Ui has the Dialog component which has the property modal, when i change it to true or false it show me the same result what does this property means?

it is really confusing me kindly help me?

Material Ui version:0.20.0

Code

 <Dialog
        modal={true}
        open={props.openClose}
        autoScrollBodyContent={true}>

             {props.children}
 </Dialog>
Olivier Tassinari
  • 8,238
  • 4
  • 23
  • 23
Ishmal Ijaz
  • 5,317
  • 3
  • 11
  • 17

2 Answers2

0

Modal dialog is apparently similar to the other dialogs but Modal dialog can only be closed by selecting one of the actions.

Soroush Chehresa
  • 5,490
  • 1
  • 14
  • 29
0

According to the Material UI documentation, the property which handles the visibility of Dialog is open.

In your example, you have given as open={props.openClose}. Please update the same with true or false and check the result.

Check the example

Also, please find the API documentation here

Abin Thaha
  • 4,493
  • 3
  • 13
  • 41