File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
angular2/src/forms/directives Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import { PromiseWrapper , ObservableWrapper , EventEmitter } from 'angular2/src/facade/async' ;
22import { StringMapWrapper , List , ListWrapper } from 'angular2/src/facade/collection' ;
3- import { isPresent , CONST_EXPR } from 'angular2/src/facade/lang' ;
3+ import { isPresent , isBlank , CONST_EXPR } from 'angular2/src/facade/lang' ;
44import { Directive } from 'angular2/src/core/annotations/decorators' ;
55import { FORWARD_REF , Binding } from 'angular2/di' ;
66import { ControlDirective } from './control_directive' ;
@@ -97,7 +97,7 @@ export class TemplateDrivenFormDirective extends ControlContainerDirective imple
9797
9898 _findContainer ( path : List < string > ) : ControlGroup {
9999 ListWrapper . removeLast ( path ) ;
100- return < ControlGroup > this . form . find ( path ) ;
100+ return ListWrapper . isEmpty ( path ) ? this . form : < ControlGroup > this . form . find ( path ) ;
101101 }
102102
103103 _later ( fn ) {
Original file line number Diff line number Diff line change 77 FormBuilder
88} from 'angular2/forms' ;
99
10- import { ObservableWrapper } from 'angular2/src/facade/async' ;
1110import { RegExpWrapper , print , isPresent } from 'angular2/src/facade/lang' ;
1211
1312import { reflector } from 'angular2/src/reflection/reflection' ;
Original file line number Diff line number Diff line change 66 TemplateDrivenFormDirective
77} from 'angular2/forms' ;
88
9- import { ObservableWrapper } from 'angular2/src/facade/async' ;
109import { RegExpWrapper , print , isPresent } from 'angular2/src/facade/lang' ;
1110
1211import { reflector } from 'angular2/src/reflection/reflection' ;
You can’t perform that action at this time.
0 commit comments