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: Close clipboard screen when an asset source or asset collection gets selected #172

Merged
merged 2 commits into from
Jan 27, 2023

Conversation

grebaldi
Copy link
Member

solves: #139

The Problem

When the clipboard screen is open, it is still possible to select an asset source or an asset collection via the left side bar. But since the clipboard screen remains open, it seems as if nothing happened after the selection.

The Solution

I used the clipboardVisibleState recoil state from @media-ui/feature-clipboard to explicitly close the clipboard screen whenever an asset source or an asset collection gets selected via the left side bar.

refs: Flowpack#139

When the clipboard screen is open, it is still possible to select an
asset source. But since the clipboard screen remains open, it seems as
if nothing happened upon selecting the asset source.

This commit closes the clipboard screen explicitly when an asset source
is selected via the left sidebar.
refs: Flowpack#139

When the clipboard screen is open, it is still possible to select an
asset collection. But since the clipboard screen remains open, it seems
as if nothing happened upon selecting the asset collection.

This commit closes the clipboard screen explicitly when an asset
collection is selected via the left sidebar.
@grebaldi
Copy link
Member Author

So, the E2E tests are failing and I can reproduce the error locally. It seems unrelated to this PR however, because the tests fail on main as well.

@Sebobo
Copy link
Member

Sebobo commented Jan 26, 2023

Yes I think I broke something when I adjusted the Inspector a bit

@Sebobo
Copy link
Member

Sebobo commented Jan 26, 2023

Would be nice to have a reducer to handle these actions, but for now it's fine like it is. Thx!

@grebaldi grebaldi linked an issue Jan 26, 2023 that may be closed by this pull request
@Sebobo Sebobo merged commit 0425af5 into Flowpack:main Jan 27, 2023
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

Successfully merging this pull request may close these issues.

Exit from opened clipboard
2 participants