Skip to content

Commit fae0263

Browse files
committed
fixup! test(material-experimental/mdc-slider): add tests for sliders with se… (#22214)
1 parent b3b1fc6 commit fae0263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material-experimental/mdc-slider/slider.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import {LEFT_ARROW, RIGHT_ARROW} from '@angular/cdk/keycodes';
1010
import {Platform} from '@angular/cdk/platform';
1111
import {
12-
dispatchEvent,
12+
dispatchFakeEvent,
1313
dispatchMouseEvent,
1414
dispatchPointerEvent,
1515
dispatchTouchEvent,
@@ -807,7 +807,7 @@ function changeValueUsingArrowKeys(slider: MatSlider, arrow: number, thumbPositi
807807
? input.value + slider.step
808808
: input.value - slider.step;
809809
input._hostElement.value = value.toString();
810-
dispatchEvent(input._hostElement, new Event('change'));
810+
dispatchFakeEvent(input._hostElement, 'change');
811811
}
812812

813813
/** Dispatch a pointerdown or pointerup event if supported, otherwise dispatch the touch event. */

0 commit comments

Comments
 (0)