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

BUG: React PropType warning that the canBePasted type is wrong #3899

Open
markusguenther opened this issue Dec 10, 2024 · 0 comments
Open

BUG: React PropType warning that the canBePasted type is wrong #3899

markusguenther opened this issue Dec 10, 2024 · 0 comments
Labels
8.3 Bug Label to mark the change as bugfix

Comments

@markusguenther
Copy link
Member

Description

For the NodeToolBar, we evaluate the current number of node context paths in the clipboard. Depending on this count, we proceed to check if there is a node that can be pasted.

When there are no nodes in the clipboard, the function returns a numeric value. This mismatch between a number and a boolean causes the warning.

Steps to Reproduce

  1. Open a neos backend
  2. ensure you have no nodes in the clipboard
  3. click on a inline editable element

Expected behavior

No warning!

Actual behavior

Screenshot 2024-12-10 at 19 31 38

Affected Versions

Neos: 8.3

UI: 8.3

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

No branches or pull requests

1 participant