File tree 2 files changed +4
-4
lines changed
tools/public_api_guard/material 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export type ArrowViewState = SortDirection | 'hint' | 'active';
54
54
*/
55
55
export interface ArrowViewStateTransition {
56
56
fromState ?: ArrowViewState ;
57
- toState : ArrowViewState ;
57
+ toState ? : ArrowViewState ;
58
58
}
59
59
60
60
/** Column definition associated with a `MatSortHeader`. */
@@ -112,7 +112,7 @@ export class MatSortHeader extends _MatSortHeaderMixinBase
112
112
* position through the animation. If animations are currently disabled, the fromState is removed
113
113
* so that there is no animation displayed.
114
114
*/
115
- _viewState : ArrowViewStateTransition ;
115
+ _viewState : ArrowViewStateTransition = { } ;
116
116
117
117
/** The direction the arrow should be facing according to the current state. */
118
118
_arrowDirection : SortDirection = '' ;
@@ -224,7 +224,7 @@ export class MatSortHeader extends _MatSortHeaderMixinBase
224
224
* no animation appears.
225
225
*/
226
226
_setAnimationTransitionState ( viewState : ArrowViewStateTransition ) {
227
- this . _viewState = viewState ;
227
+ this . _viewState = viewState || { } ;
228
228
229
229
// If the animation for arrow position state (opacity/translation) should be disabled,
230
230
// remove the fromState so that it jumps right to the toState.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export declare type ArrowViewState = SortDirection | 'hint' | 'active';
2
2
3
3
export interface ArrowViewStateTransition {
4
4
fromState ?: ArrowViewState ;
5
- toState : ArrowViewState ;
5
+ toState ? : ArrowViewState ;
6
6
}
7
7
8
8
export declare const MAT_SORT_DEFAULT_OPTIONS : InjectionToken < MatSortDefaultOptions > ;
You can’t perform that action at this time.
0 commit comments