File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {ConnectedPositionStrategy} from './position/connected-position-strategy'
24
24
import { Subscription } from 'rxjs/Subscription' ;
25
25
import { Dir , LayoutDirection } from '../rtl/dir' ;
26
26
import { Scrollable } from './scroll/scrollable' ;
27
+ import { coerceBooleanProperty } from '../coercion/boolean-property' ;
27
28
28
29
/** Default set of positions for the overlay. Follows the behavior of a dropdown. */
29
30
let defaultPositionList = [
@@ -121,9 +122,8 @@ export class ConnectedOverlayDirective implements OnDestroy {
121
122
return this . _hasBackdrop ;
122
123
}
123
124
124
- // TODO: move the boolean coercion logic to a shared function in core
125
125
set hasBackdrop ( value : any ) {
126
- this . _hasBackdrop = value != null && ` ${ value } ` !== 'false' ;
126
+ this . _hasBackdrop = coerceBooleanProperty ( value ) ;
127
127
}
128
128
129
129
@Input ( )
You can’t perform that action at this time.
0 commit comments