Questions tagged [react-modal]

Accessible modal dialog component for React.JS

260 questions
0
votes
1 answer

react-modal throws error when upgrading from React 14 to React 16

React-modal worked great for us in React 14. We upgraded to React 16 and are getting the following error. invariant.js:38 Uncaught Error: Modal.render(): A valid React element (or null) must be returned. You may have returned undefined, an…
dt1000
  • 3,684
  • 6
  • 43
  • 65
0
votes
2 answers

React Material-Ui(0.20.0) dialog not show expected results?

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
Ishmal Ijaz
  • 5,317
  • 3
  • 11
  • 17
0
votes
1 answer

Clicking a button to open dialog in ReactJS

I'm working with React MDL library, and I used pre-defined components like FABButton And it shows the button as in the image bellow: Now, what I want is showing a dialog with the + icon... not as…
Meqdad Dev
  • 131
  • 1
  • 2
  • 10
0
votes
1 answer

How to change Modal state from outside the React class?

I am trying to call my modal by changing the state from outside the react class. But so far no luck. I tried the following: I have a method named Portfolio which needs to activate the modal once user click on the Image const Portfolio = (props) =>…
jquery404
  • 653
  • 1
  • 12
  • 26
0
votes
0 answers

Making React-Modal Non transparent

I am using react-modal in my code. Please find below its style, const customStyles = { content : { top : '37%', left : '50%', right : 'auto', bottom :…
Mangesh Tak
  • 346
  • 1
  • 6
  • 22
0
votes
1 answer

Triggering a passed-down event inside custom MenuList in React-Select

I want to open a modal which exists in the parent component from a button inside the MenuList of react-select. I created a custom MenuList with my button and passed it to react-select as