Skip to content

Commit

Permalink
Merge pull request #3747 from Alvadda/bugfix/disableTextSelectionInDo…
Browse files Browse the repository at this point in the history
…cumentTree

BUGFIX: Disable node text selection in document tree
  • Loading branch information
mhsdesign authored Mar 15, 2024
2 parents cbe84c3 + 8356c77 commit cf41c70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,15 @@ const options = {
cssModules(
{
visitor: compileWithCssVariables(),
targets: {
chrome: 80 // aligns somewhat to es2020
targets: { // only support es2020 browser
// only supports browserList format
// https://lightningcss.dev/transpilation.html
// list of supported browser version per es version
// https://github.com/evanw/esbuild/issues/121#issuecomment-646956379
chrome: (80 << 16), // 80
safari: (13 << 16) | (1 << 8), // 13.1
firefox: (72 << 16), // 72
edge: (80 << 16) // 80
},
drafts: {
nesting: true
Expand Down
2 changes: 2 additions & 0 deletions packages/react-ui-components/src/Tree/tree.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
composes: reset from '../reset.module.css';

padding: 5px 0;
user-select: none;

&:focus {
outline: 0;
}
}

0 comments on commit cf41c70

Please sign in to comment.