File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
projects/igniteui-angular/src/lib Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ export class IgxCalendarBaseDirective implements ControlValueAccessor {
181181 * Sets the date that will be presented in the default view when the component renders.
182182 */
183183 public set viewDate ( value : Date ) {
184+ if ( Array . isArray ( value ) ) { return ; }
184185 if ( this . _viewDate ) {
185186 this . selectedDatesWithoutFocus = value ;
186187 }
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ export class IgxMonthsViewComponent implements ControlValueAccessor {
4848 * @memberof IgxMonthsViewComponent
4949 */
5050 @Input ( )
51- public set date ( value ) {
51+ public set date ( value : Date ) {
52+ if ( ! ( value instanceof Date ) ) { return ; }
5253 this . _date = value ;
5354 this . activeMonth = this . date . getMonth ( ) ;
5455 }
Original file line number Diff line number Diff line change @@ -57,7 +57,14 @@ export class IgxYearsViewComponent implements ControlValueAccessor {
5757 * @memberof IgxYearsViewComponent
5858 */
5959 @Input ( )
60- public date = new Date ( ) ;
60+ public get date ( ) {
61+ return this . _date ;
62+ }
63+
64+ public set date ( value : Date ) {
65+ if ( ! ( value instanceof Date ) ) { return ; }
66+ this . _date = value ;
67+ }
6168
6269 /**
6370 * Gets the year format option of the years view.
@@ -181,6 +188,10 @@ export class IgxYearsViewComponent implements ControlValueAccessor {
181188 * @hidden
182189 */
183190 private _calendarModel : Calendar ;
191+ /**
192+ * @hidden
193+ */
194+ private _date = new Date ( ) ;
184195
185196 /**
186197 * @hidden
Original file line number Diff line number Diff line change @@ -396,7 +396,8 @@ export class IgxSliderComponent implements
396396 /**
397397 * An @Input property that marks the {@link IgxSliderComponent} as continuous.
398398 * By default is considered that the {@link IgxSliderComponent} is discrete.
399- * Discrete {@link IgxSliderComponent} does not have ticks and does not show bubble labels for values.
399+ * Discrete {@link IgxSliderComponent} slider has step indicators over the track and visible thumb labels during interaction.
400+ * Continuous {@link IgxSliderComponent} does not have ticks and does not show bubble labels for values.
400401 * ```html
401402 * <igx-slider #slider [continuous]="'true'" [(ngModel)]="task.percentCompleted" [step]="5" [lowerBound]="20">
402403 * ```
You can’t perform that action at this time.
0 commit comments