-
Notifications
You must be signed in to change notification settings - Fork 11
Multi select changes #696
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
Merged
Merged
Multi select changes #696
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
92f0832
refactor: wip
anandtiwary 1cda1c7
refactor: adding more tests
anandtiwary 134c991
chore: downgrading husky
anandtiwary bae4bc8
Merge branch 'main' into multi-select-changes
anandtiwary 1b1d758
refactor: fixing formatting
anandtiwary 664accd
Merge branch 'multi-select-changes' of github.com:hypertrace/hypertra…
anandtiwary 4789f70
refactor: addressing review comments
anandtiwary 7c75ed5
refactor: displaying search box and buttons for large options list
anandtiwary 0c346a9
Merge branch 'main' into multi-select-changes
anandtiwary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how these tests worked before. PopoverModule was not added in the shallow test. So the popover content could never get projected.
Also,
triggerEventHandler
doesn't provide a{root: true}
option. Since the search box would be outside the host element's scope, this trigger call just doesn't work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's how - it wasn't using the real popover (so those tags are basically ignored), which your test is now. So only the searchbox was mocked as an actual component - but it was never projected. That's also why the root wasn't there before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also might be able to use
read: DebugElement
to trigger the event handler since you can't use a selector directly in there.