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

BUGFIX: LinkEditor placeholder now uses the custom placeholder correctly #3799

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

dr-format-d
Copy link
Collaborator

Fixes #3797

What I did
If the user now sets a placeholder for the LinkEditor the placeholder will now be correctly shown in the neos frontend.

How I did it
I removed a (imo) unnecessary condition, which caused the custom placeholder to be always overridden with a static placeholder.

How to verify it
Try to set a placeholder for the LinkEditor like you would/expect with any other editor component

Before:
Video before

After:
Video after

…ectly

Initially the user could set a placeholder, but inside the `LinkInput.js` it wouldn't be used and an unnecessary static placeholder would be used instead

Fixes neos#3797
@github-actions github-actions bot added Bug Label to mark the change as bugfix 8.3 labels Jun 1, 2024
@dr-format-d dr-format-d marked this pull request as ready for review June 3, 2024 04:47
Copy link
Contributor

@grebaldi grebaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dr-format-d,

thanks a lot for your first PR to the Neos UI! 🎉

I tested your change and it makes custom placeholders work correctly. However, I'll need a little adjustment (see comment below), so that it still works, when no custom placeholder is configured.

packages/neos-ui-editors/src/Library/LinkInput.js Outdated Show resolved Hide resolved
…r on empty `placeholder:` setting

If someone leaves the `placeholder:` setting empty, the default placeholder, instead of a completely empty `LinkEditor`-input will be shown.

Fixes neos#3797
@dr-format-d dr-format-d requested a review from grebaldi June 3, 2024 15:42
Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for this fix! 🙂

@Sebobo Sebobo merged commit f7eb451 into neos:8.3 Jun 4, 2024
9 checks passed
@dr-format-d dr-format-d deleted the 8.3 branch June 4, 2024 11:22
@dr-format-d dr-format-d restored the 8.3 branch June 4, 2024 11:22
@dr-format-d dr-format-d deleted the 8.3 branch June 4, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants