ui: Workaround FF and/or ember problem, trying to set a value="" (#8884)

pull/8890/head
John Cowen 4 years ago committed by GitHub
parent 962ab25503
commit 13dfde75a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@
@extend %with-deny-color-icon, %as-pseudo; @extend %with-deny-color-icon, %as-pseudo;
} }
.permissions > button { .permissions > button {
@extend %anchor; @extend %anchor, %p2;
float: right; float: right;
} }
} }

@ -3,7 +3,12 @@
class="radio-card{{if checked ' checked'}}" class="radio-card{{if checked ' checked'}}"
> >
<div> <div>
{{! 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}} /> <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>
<div> <div>
{{yield}} {{yield}}

Loading…
Cancel
Save