Skip to content

Commit

Permalink
fix(tags): tags-list doesn't pick up wrapped div with Ivy
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Jun 8, 2019
1 parent 979e77c commit 0c45e93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
'sidepanel',
'splitter',
'tabs',
'tags',
'textarea',
'timepicker',
'toggle',
Expand Down
6 changes: 5 additions & 1 deletion packages/mosaic/tags/tag-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ export class McTagList extends _McTagListMixinBase implements McFormFieldControl
@Output() readonly change: EventEmitter<McTagListChange> = new EventEmitter<McTagListChange>();

/** The tag components contained within this tag list. */
@ContentChildren(McTag) tags: QueryList<McTag>;
@ContentChildren(McTag, {
// Need to use `descendants: true`,
// Ivy will no longer match indirect descendants if it's left as false.
descendants: true
}) tags: QueryList<McTag>;

_tabIndex = 0;

Expand Down

0 comments on commit 0c45e93

Please sign in to comment.