-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: select text in validation console #186
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…or-validation-console-texts
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bripkens selecting text in validation console fixed
@@ -22,7 +22,6 @@ export function ResizeBar({ onWidthChange }: ResizeBarProps) { | |||
}; | |||
|
|||
const onMouseMove = (e: MouseEvent) => { | |||
e.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: I believe we should still call e.preventDefault()
when state.current.dragging
. This ensures that text selection doesn't happen when resizing the editor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we didn't have the Autosizer component, and selecting other texts problem was happening, with the current Autosizer, I tested ResizeBar without e.preventDefault(); there is no problem with selecting other texts. @bripkens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, seems to only occur in the error panel. Which is okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bripkens hmm it's strange, I tested in Chrome, and there was no extra selecting text in anywhere.
No description provided.