mirror of https://github.com/status-im/consul.git
ui: Workaround FF and/or ember problem, trying to set a value="" (#8884)
This commit is contained in:
parent
962ab25503
commit
13dfde75a2
|
@ -18,7 +18,7 @@
|
|||
@extend %with-deny-color-icon, %as-pseudo;
|
||||
}
|
||||
.permissions > button {
|
||||
@extend %anchor;
|
||||
@extend %anchor, %p2;
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,12 @@
|
|||
class="radio-card{{if checked ' checked'}}"
|
||||
>
|
||||
<div>
|
||||
<input type="radio" name={{name}} value={{value}} checked={{checked}} onchange={{action onchange}} />
|
||||
{{! workaround FF/Ember problem where you cannnot set a value to be value="" (empty)}}
|
||||
{{#if (gt value.length 0) }}
|
||||
<input type="radio" name={{name}} value={{value}} checked={{checked}} onchange={{action onchange}} />
|
||||
{{else}}
|
||||
<input type="radio" name={{name}} value="" checked={{checked}} onchange={{action onchange}} />
|
||||
{{/if}}
|
||||
</div>
|
||||
<div>
|
||||
{{yield}}
|
||||
|
|
Loading…
Reference in New Issue