Skip to content

Commit

Permalink
UI: Bugfix. Fix code toggle in Safari (#4608)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
johncowen authored Aug 30, 2018
1 parent ca35d04 commit 5e98796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui-v2/app/templates/dc/kv/-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{#if (or (eq (left-trim item.Key parent.Key) '') (not-eq (last item.Key) '/')) }}
<div>
<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>
</label>
<label class="type-text{{if item.error.Value ' has-error'}}">
Expand Down

0 comments on commit 5e98796

Please sign in to comment.