Skip to content
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

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

roshan-gh
Copy link
Contributor

No description provided.

@roshan-gh roshan-gh requested a review from bripkens November 8, 2023 21:49
@roshan-gh roshan-gh self-assigned this Nov 8, 2023
Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
otelbin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2023 7:40pm

Copy link

sonarqubecloud bot commented Nov 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor Author

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();
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

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.

@bripkens bripkens merged commit b81a466 into main Nov 10, 2023
28 checks passed
@bripkens bripkens deleted the selectable-error-validation-console-texts branch November 10, 2023 09:44
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants