I have an input box in my main App element (id= "inputBox") and a react-modal that pops up when some input is given to this input box(via onChange event).
I want to position the react-modal just below this input box when it pops open but am being unable to do so.
I have so far only been able to position it relative to the viewport by calculating the offset of the input box and accordingly setting the style.top/style.left of the modal overlay. But this is causing some other problems,so I need to be able to set the position relative to the input box.
Any suggestions on how to do this will be highly appreciated.