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

I have to click twice to enable the text cursor and the add toolbar when there is a placeholder #1506

Open
bettysteger opened this issue Nov 4, 2021 · 0 comments

Comments

@bettysteger
Copy link
Contributor

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I have to click twice to enable the text cursor and add-toolbar when there is a placeholder. And the add-toolbar is shown at a wrong position:
image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Go to alloyeditor.com
  2. Remove all content
  3. Inspect the alloy-editor element, and add the following style to the before pseudo element:
.ae-placeholder:not(:focus):before {
    content: attr(data-placeholder);
    position: absolute;
    content: "some placeholder";
}
  1. Click inside the alloy-editor to write or add something, the text cursor will not appear and the add-toolbar is misplaced.

What is the expected behavior?

I should be able to click once and start writing.

Which versions of alloy-editor, and which browser / OS are affected by this issue? Did this work in previous versions?

Using alloyeditor 2.14.4, Chrome v95 and Mac OSX. I am not sure, if it did work in previous versions.

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

1 participant