Skip to content

Commit 7c8e25d

Browse files
author
kornosaurus
committed
$$value$$ could be something other than a string, like a boolean.. so we need to check if $$value$$ is undefined instead
1 parent 496932f commit 7c8e25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap-decorator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ function(decoratorsProvider, sfBuilderProvider, sfPathProvider) {
4444
* which does not like the ng-if comment.
4545
*/
4646
if (angular.version.major === 1 && angular.version.minor < 4) {
47-
option.setAttribute('ng-if', '!$$value$$');
47+
option.setAttribute('ng-if', '$$value$$ === undefined');
4848
} else {
49-
option.setAttribute('ng-show', '!$$value$$');
49+
option.setAttribute('ng-show', '$$value$$ === undefined');
5050
}
5151

5252
option.textContent = args.form.placeholder;

0 commit comments

Comments
 (0)