drab icon indicating copy to clipboard operation
drab copied to clipboard

sender always return true for checkbox

Open guidotripaldi opened this issue 6 years ago • 0 comments

It seems that the actual value for type checkbox input isn't reported correctly (on branch master), it always reports a true value when a checkbox is clicked:

# Template
<%= checkbox :permission, :read, value: true, drab: "change:test_checkbox()" %> Read
<%= checkbox :permission, :write, value: false, drab: "change:test_checkbox()" %> Write
# TestCommander
  defhandler test_checkbox(socket, sender) do
    IO.puts "test_checkbox, sender name: #{sender["name"]}, value: #{sender["value"]}"
  end

guidotripaldi avatar Dec 10 '18 22:12 guidotripaldi