Skip to content

Commit ee73d2c

Browse files
devversionandrewseguin
authored andcommitted
fix(datepicker): deprecate selectedChanged output (#6025)
* Deprecates the `selectedChanged` output on the datepicker component in favor of the `dateChange` and `dateInput` bindings on the input element. Closes #6000
1 parent 08037f9 commit ee73d2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/datepicker/datepicker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ export class MdDatepicker<D> implements OnDestroy {
151151
}
152152
private _disabled: boolean;
153153

154-
/** Emits new selected date when selected date changes. */
154+
/**
155+
* Emits new selected date when selected date changes.
156+
* @deprecated Switch to the `dateChange` and `dateInput` binding on the input element.
157+
*/
155158
@Output() selectedChanged = new EventEmitter<D>();
156159

157160
/** Whether the calendar is open. */

0 commit comments

Comments
 (0)