Skip to content

Commit

Permalink
Remove outline from clicking on SVG chord tracks (#2161)
Browse files Browse the repository at this point in the history
* Remove outline

* Add comment note
  • Loading branch information
cmdcolin committed Jul 26, 2021
1 parent ba4e748 commit 7d4e500
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export default ({ jbrequire }) => {
domNode.style.display = 'none'
unmountComponentAtNode(domNode)
}
domNode.style.display = 'inline'

// setting outline:none fixes react "focusable" element issue. see
// https://github.com/GMOD/jbrowse-components/issues/2160
domNode.style.outline = 'none'
domNode.innerHTML = html
// use requestIdleCallback to defer main-thread rendering
// and hydration for when we have some free time. helps
Expand Down

0 comments on commit 7d4e500

Please sign in to comment.