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: Hide inline toolbar if current editPreviewMode is not an edit mode #3334

Conversation

grebaldi
Copy link
Contributor

fixes: #3144

The Problem

The <ContentCanvas/> did not distinguish between edit- and preview-modes when rendering the <InlineUI/> component.

This lead to the <InlineUI/> still being present, even though a preview-mode (like "desktop") had been selected.

The Solution

I added a condition to the render method of the <ContentCanvas/> component. If the currently selected editPreviewMode is not an edit-mode, the <InlineUI/> component will not be rendered any longer.

@grebaldi grebaldi added Bug Label to mark the change as bugfix 7.3 labels Jan 16, 2023
@grebaldi grebaldi linked an issue Jan 16, 2023 that may be closed by this pull request
@crydotsnake crydotsnake self-requested a review January 16, 2023 17:49
Copy link
Member

@crydotsnake crydotsnake left a comment

Choose a reason for hiding this comment

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

Thanks!
Works as expected

Copy link
Member

@markusguenther markusguenther left a comment

Choose a reason for hiding this comment

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

Thanks for all the fixes @grebaldi 💙

@markusguenther markusguenther merged commit 8044dc4 into neos:7.3 Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Floating inline toolbar in preview mode (desktop/tablet ...)
3 participants