react-accessible-modal icon indicating copy to clipboard operation
react-accessible-modal copied to clipboard

Enhancement/suggestion: Avoid overflow trap, use a Portal.

Open renatodeleao opened this issue 8 years ago • 0 comments

In today's complex layouts, the behaviour of other components might indirectly affect our component render.

demo vid

It's good practice to render "out of document flow"/"dynamic positioned elements outside of app root (usually append to body). In the react world the concept is known as Portal. They're included in v16, but there's ways to accomplish them on prior versions.

Cheers!

renatodeleao avatar Dec 20 '17 15:12 renatodeleao