Closed jcoyne closed 4 years ago
If you can hop on master, this was recently merged: https://github.com/unabridged/motion/pull/47
@caifara Nice! I'll give that a try.
@caifara master does work, however I was unable to call current_target
on the event:
[TitleComponent:34660] An error occurred while processing add:
NoMethodError: undefined method `current_target' for #<Motion::Event:0x00007fa0d8738b80>
however, I was able to switch to using target
just fine.
@jcoyne current_target
was removed in #43 because I don't think it is what we ever wanted. On master (and in the next release), Motion::Event#element
will always be the element to which data-motion
was added.
I don't want to do a release until I track down what is causing the intermittent CI failures (especially since those are happening much more often now on master).
@alecdotninja current_target
is still referred to in the README. Should that be removed?
@jcoyne Yes, that is a good idea. I really need to get better about documentation. :see_no_evil:
0.4.3
and the README has been updated :tada:
I'm seeing this error:
It would be nice if we could use rails form objects in motion components.
parent_component.html.erb
parent_component.rb
child_component.html.erb
child_component.rb