Closed
Description
I'm submitting a ... (check one with "x")
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Observed behavior
When implementing ControlValueAccessor
and including md-select
(from angular-material2) in the template ControlValueAccessor
methods are not invoked and banana-binding does not work.
Desired behaviour
When implementing ControlValueAccessor
and including md-select
(from angular-material2) in the template ControlValueAccessor
methods are invoked and banana-binding works.
Steps to reproduce
This plunker contains tow identical components where the only difference is the inclusion of md-select in the template of 'with-select' component. This brakes banana binding as described.
- Open plunker at http://plnkr.co/edit/BzgXV2?p=preview
- Watch console and note logs for all events emitted from
ControlValueAccessor
methods onno-select
component:
writeValue(obj: any): void {
this.val=obj;
console.log('no-select writeValue: ' + obj);
};
registerOnChange(fn: any): void {
console.log('no-select on change registered');
this.onChange = fn;
};
registerOnTouched(fn: any): void {
console.log('no-select on touched registered');
this.onTouched = fn;
};
- Note
app.component
includes bothno-select
andwith-select
components:
Where the only differences is thatwith-select
hasmd-select
in it's template:
and yet allControlValueAccessor
methods calls for thewith-select
component are missing from the log (and binding is not functioning).
See also
angular/components#2609
Metadata
Metadata
Assignees
Labels
No labels