From 982bb8b01d50895a8180fa9eda00552b8f3e8be0 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Mon, 30 Mar 2015 20:52:37 -0700 Subject: [PATCH] fix(forms): fixed a directive selector --- modules/angular2/src/forms/directives.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/angular2/src/forms/directives.js b/modules/angular2/src/forms/directives.js index 410b089e2e..9745604d6d 100644 --- a/modules/angular2/src/forms/directives.js +++ b/modules/angular2/src/forms/directives.js @@ -32,8 +32,7 @@ export class DefaultValueAccessor { } @Decorator({ - selector: 'input[type=checkbox]', //should be input[type=checkbox][control] - // change the selector once https://github.com/angular/angular/issues/1025 is fixed + selector: 'input[type=checkbox][control]', events: { 'change' : 'onChange($event.target.checked)' }