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

This commit is contained in:
John Cowen 2020-10-08 20:32:27 +01:00 committed by GitHub
parent 6ab78805cb
commit 4083af3ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -3,7 +3,12 @@
class="radio-card{{if checked ' checked'}}"
>
<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}} />
{{else}}
<input type="radio" name={{name}} value="" checked={{checked}} onchange={{action onchange}} />
{{/if}}
</div>
<div>
{{yield}}