question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

placeholder text doesn't disappear if the user leaves first line of editor blank

See original GitHub issue

I’m guessing your query selector checks for an empty <p></p> on the first line of the editor 😃 the bad news is, that doesn’t necessarily mean the editor is empty haha!

placeholderbug

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
codepotatocommented, Sep 13, 2018

If the editor is completely empty, like a regular placeholder on an input, I reckon. 👍

1reaction
usb248commented, Sep 13, 2019

Are you sure of what you said ? 🤔 Still very weird behavior on last version… image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I add placeholder text when the editor is empty
You can use placeholder: "Your Placeholder Text" option to put placeholder in your Ace Editor.
Read more >
Don't Use The Placeholder Attribute - Smashing Magazine
For someone who has never encountered it before, placeholder text may look like entered content, causing them to skip over the input. If ......
Read more >
The editor placeholder should disappear when typing, not ...
The idea is that the editor placeholder (editing root, image caption) should act like the native DOM input placeholder. However, its text ......
Read more >
:placeholder-shown - CSS: Cascading Style Sheets | MDN
The :placeholder-shown CSS pseudo-class represents any or element that is currently displaying placeholder text.
Read more >
::placeholder | CSS-Tricks - CSS-Tricks
:placeholder-shown is for selecting the input itself when it's placeholder text is being shown. As opposed to ::placeholder which styles the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found