fkling / fkling/astexplorer

selected text is not visible when it is errored in red.

Open
#416 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.5k
Forks
772
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When an error is there in the code, we can't see the selected text.
**To Reproduce**
Steps to reproduce the behaviour:
1. Go to 'AST explorer' - https://astexplorer.net/, have 'Espree' as parser with Transform 'Eslint v4'. ( I think it would be reproducible for all other options too.)
2. Write
`const {promisify as foo} = require('util');`

3. It will become red in colour due to error, not select the whole text, you will realize that the selected text isn't visible, but it is actually getting selected behind the scene as clicking backspace deletes the selected text.
![Screenshot from 2019-07-12 10-06-05](https://user-images.githubusercontent.com/30543444/61102735-c17bbf00-a48c-11e9-9d78-de4d62d924e2.png)

**Expected behavior**
A clear and concise description of what you expected to happen.
It should be visible to the user.

**Browser (please complete the following information):**
- OS: Ubuntu Bionic
- Browser Google Chrome
- Version 73

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.