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

avoid opening preview on focus when item is already selected #4172

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

petrjasek
Copy link
Member

@petrjasek petrjasek commented Jan 3, 2023

SDESK-6777 SDNTB-784

@petrjasek petrjasek added this to the 2.6 milestone Jan 3, 2023
@tomaskikutis
Copy link
Member

Instead of handling it inside select function, couldn't we ensure that select function is not called at all in that case? Focusing an input in authoring shouldn't trigger focus on list item

@petrjasek
Copy link
Member Author

it's actually focus called on the item, it only happens when the item is locked so the focus doesn't go to authoring, then when the window is revisited the previously focused item gets the focus again

@tomaskikutis
Copy link
Member

I didn't see the video previously, now I understand the issue. Maybe make a comment more clear by specifying that by " returning to same screen" you mean browser tab changes and browser behavior of focusing element again.

@petrjasek petrjasek merged commit 3095e37 into superdesk:develop Jan 4, 2023
@petrjasek petrjasek deleted the fix-item-preview-on-focus branch January 4, 2023 15:33
@petrjasek petrjasek modified the milestones: 2.6, 2.6.1 Jan 5, 2023
petrjasek added a commit that referenced this pull request Jan 11, 2023
* avoid opening preview on focus when item is already selected

SDESK-6777 SDNTB-784
petrjasek added a commit that referenced this pull request Feb 1, 2023
* avoid opening preview on focus when item is already selected

SDESK-6777 SDNTB-784
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.

2 participants