Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sender always return true for checkbox #179

Open
guidotripaldi opened this issue Dec 10, 2018 · 0 comments
Open

sender always return true for checkbox #179

guidotripaldi opened this issue Dec 10, 2018 · 0 comments

Comments

@guidotripaldi
Copy link
Contributor

guidotripaldi commented Dec 10, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant