Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit d80f136

Browse files
committed
OPH-1478: Korjaa booleanSelect-direktiivi
angular/angular.js#12190
1 parent 5d4e378 commit d80f136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ttk/resources/public/js/directives.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ angular.module('directives', ['services', 'resources', 'ngCookies'])
667667
.directive('booleanSelect', ['boolValues', 'i18n', function(boolValues, i18n){
668668

669669
var template = '<select ng-model="model" ng-required="pakollinen" ng-options="b.value as b.name for b in boolValues">';
670-
template += '<option value="" ng-if="(pakollinen && !model) || !pakollinen" ng-bind="pakollinen ? i18n.yleiset[\'valitse\'] : i18n.yleiset[\'ei-valintaa\']"></option></select>';
670+
template += '<option value="" ng-show="(pakollinen && !model) || !pakollinen" ng-bind="pakollinen ? i18n.yleiset[\'valitse\'] : i18n.yleiset[\'ei-valintaa\']"></option></select>';
671671

672672
return {
673673
restrict: 'E',

0 commit comments

Comments
 (0)