Skip to content

Commit

Permalink
Merge pull request #11142 from IgniteUI/VDyulgerov/fix-columnToggle-e…
Browse files Browse the repository at this point in the history
…vent

fix(grid): put actions as parameter
  • Loading branch information
hanastasov authored Mar 11, 2022
2 parents b0be138 + 3567d35 commit ff0f305
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export abstract class BaseToolbarDirective implements OnDestroy {
/** @hidden @internal */
public toggle(anchorElement: HTMLElement, toggleRef: IgxToggleDirective, actions?: IgxColumnActionsComponent): void {
if (actions) {
this._setupListeners(toggleRef);
this._setupListeners(toggleRef, actions);
const setHeight = () =>
actions.columnsAreaMaxHeight = this.columnListHeight ?? `${Math.max(this.grid.calcHeight * 0.5, 200)}px`;
toggleRef.opening.pipe(first()).subscribe(setHeight);
Expand Down

0 comments on commit ff0f305

Please sign in to comment.