UI: Bugfix. Fix code toggle in Safari (#4608)

I'd mistakenly changed the checkbox event to listen to oninput, which
works in Chrome and Firefox. Changed this back to onchange as it should
be.
This commit is contained in:
John Cowen 2018-08-30 10:02:26 +01:00 committed by GitHub
parent ca35d04472
commit 5e987965fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
{{#if (or (eq (left-trim item.Key parent.Key) '') (not-eq (last item.Key) '/')) }} {{#if (or (eq (left-trim item.Key parent.Key) '') (not-eq (last item.Key) '/')) }}
<div> <div>
<label class="type-toggle"> <label class="type-toggle">
<input type="checkbox" name="json" checked={{if json 'checked' }} oninput={{action 'change'}} /> <input type="checkbox" name="json" checked={{if json 'checked' }} onchange={{action 'change'}} />
<span>Code</span> <span>Code</span>
</label> </label>
<label class="type-text{{if item.error.Value ' has-error'}}"> <label class="type-text{{if item.error.Value ' has-error'}}">