Skip to content

Commit a5b3dc7

Browse files
authored
Merge branch 'master' into dpetev/grid-types-refactor
2 parents 55458b6 + 1bcbe0b commit a5b3dc7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/app/overlay/overlay.sample.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import {
2121
IgxLabelDirective,
2222
IgxButtonDirective,
2323
IgxRippleDirective,
24-
IgxDropDownItemComponent
24+
IgxDropDownItemComponent,
25+
IChangeCheckboxEventArgs
2526
} from 'igniteui-angular';
2627
import { IAnimationParams } from 'igniteui-angular/animations';
2728

@@ -81,8 +82,8 @@ export class OverlaySampleComponent implements OnInit {
8182
}
8283
}
8384

84-
public onChange(ev) {
85-
switch (ev.radio.name) {
85+
public onChange(ev: IChangeCheckboxEventArgs) {
86+
switch (ev.owner.name) {
8687
case 'ps':
8788
this.removeSelectedClass('direction');
8889
this.removeSelectedClass('start-point');
@@ -240,8 +241,8 @@ export class OverlaySampleComponent implements OnInit {
240241
this._overlaySettings.outlet = this.useOutlet ? this.outletElement : null;
241242
}
242243

243-
public onSwitchChange(ev) {
244-
switch (ev.switch.name) {
244+
public onSwitchChange(ev: IChangeCheckboxEventArgs) {
245+
switch (ev.owner.name) {
245246
case 'close':
246247
this._overlaySettings.closeOnOutsideClick = ev.checked;
247248
break;

0 commit comments

Comments
 (0)