GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
205 stars 61 forks source link

Use ref instead of deprecated findDOMNode for draggable dialog #4440

Closed cmdcolin closed 3 months ago

cmdcolin commented 3 months ago

This changes the "DraggableDialog" component to use refs instead of findDOMNode which is deprecated

cmdcolin commented 3 months ago

I guess this has the effect of making click and drag anywhere on the dialog do a drag action whereas on main it is just the title area. could be acceptable like that, but could also try to narrow it back down to just the title area click and drag potentially

cmdcolin commented 3 months ago

fixed the handler to only respond to title area click