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

placeholder will not disappear when input Chinese #4373

Closed
Sneaken opened this issue Aug 14, 2024 · 4 comments
Closed

placeholder will not disappear when input Chinese #4373

Sneaken opened this issue Aug 14, 2024 · 4 comments

Comments

@Sneaken
Copy link

Sneaken commented Aug 14, 2024

Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.

Steps for Reproduction

  1. Visit https://quilljs.com/playground/snow
  2. input Chinese but do not select

Expected behavior:

placeholder will disapper

Actual behavior:

placeholder still show

Platforms:

Include browser, operating system and respective versions

all platform

Version:
2.0.2

@AcWrong02
Copy link

I had the same problem

1 similar comment
@Gaitin
Copy link

Gaitin commented Sep 25, 2024

I had the same problem

@badspider7
Copy link

+1

@Sneaken
Copy link
Author

Sneaken commented Oct 16, 2024

quill.root.addEventListener('input', () => {
  if (quill.root.innerText !== '\n' && quill.root.classList.contains('ql-blank')) {
    quill.root.classList.toggle('ql-blank', false);
  }
});

@Sneaken Sneaken closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants