Skip to content

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

@bettysteger

Description

@bettysteger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions