You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a list line with a click event and then an action on that line with a different event, multiple actions can be triggered. For example:
list do
things.each do |thing|
line do
text thing.name
event :click do
hide :this_content_block
show :some_other_block
end
actions do
switch name: :active, value: true, off_value: false, checked: thing.active do
event :change do
posts update_thing_path, thing_id: thing.id
end
end
end
end
end
end
Clicking the switch on a line will cause the post action to fire, but also the line's click event actions. Changing the switch's event to click instead of change makes it work as expected; the post fires, the hide/show does not.
The text was updated successfully, but these errors were encountered:
If you have a list line with a click event and then an action on that line with a different event, multiple actions can be triggered. For example:
Clicking the switch on a line will cause the post action to fire, but also the line's click event actions. Changing the switch's event to
click
instead ofchange
makes it work as expected; the post fires, the hide/show does not.The text was updated successfully, but these errors were encountered: