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

fix(listbox): show selection toolbar when listbox opens in popover #1204

Merged
merged 4 commits into from Apr 3, 2023

Conversation

PurwaShrivastava
Copy link
Contributor

@PurwaShrivastava PurwaShrivastava commented Mar 30, 2023

This is to fix : qlik-oss/sn-list-objects#230

Selection Toolbar will always be shown inline when the listbox opens in popover, this solves the issue with small screen as well.

With Title - small screen
Screenshot 2023-03-30 at 13 01 30

Without title - small screen
Screenshot 2023-04-03 at 10 02 28

Big Title Truncated - Desktop
Truncated_Title

@PurwaShrivastava PurwaShrivastava requested a review from a team March 30, 2023 14:59
@PurwaShrivastava PurwaShrivastava changed the title fix(listbox): always show selection toolbar when listbox opens in pop… fix(listbox): show selection toolbar when listbox opens in popover Mar 30, 2023
@PurwaShrivastava PurwaShrivastava requested a review from a team April 3, 2023 08:16
Comment on lines +156 to +163
if (isPopover) {
if (!selections.isActive()) {
selections.begin('/qListObjectDef');
selections.on('activated', show);
selections.on('deactivated', hide);
}
setShowToolbar(isPopover);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe also add a check if selections exists. based on that the next if does maybe it is also needed here?

@veinfors veinfors merged commit 2c62034 into master Apr 3, 2023
3 checks passed
@veinfors veinfors deleted the atq/toolbarPopover branch April 3, 2023 12:56
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.

Small screen: After entering a listbox you cant Cancel selection and go back until a selection is made
3 participants