Uh oh!
There was an error while loading. Please reload this page.
feat(datepicker): add opened input binding - #8098
Conversation
| @Input() | ||
| get opened(): boolean { return this._opened; } | ||
| set opened(value: boolean) { | ||
| const shouldOpen = coerceBooleanProperty(value); |
There was a problem hiding this comment.
Since you're not assigning the shouldOpen anywhere, you don't really need to coerce it.
| set opened(value: boolean) { | ||
| const shouldOpen = coerceBooleanProperty(value); | ||
| if (shouldOpen) { |
There was a problem hiding this comment.
You could shorten this one down with a ternary: shouldOpen ? this.open() : this.close().
andrewseguin
commented
Nov 2, 2017
Got a broken test in Safari |
devversion
commented
Nov 2, 2017
@andrewseguin This is related to the internationalization APIs of the browser. Since the tests didn't run before (at all) the issue didn't show up yet. Might need to investigate whether the browser has the |
2bf77c7 to
a38f138Comparemmalerba
commented
Nov 2, 2017
Safari doesn't support the Intl API, I would just skip that test on Safari |
devversion
commented
Nov 2, 2017
@mmalerba Yeah. I just used that |
4e564a2 to
3bf9d3fCompare* Adds support for the `opened` input binding. Closesangular#8094
3bf9d3f to
d623f01Compare* Adds support for the `opened` input binding. Closesangular#8094
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
openedinput binding.Closes#8094