TypeError: Cannot read property 'event' of undefined
DODMax opened this issue · comments
DODMax commented
Robert Dezso commented
@DODMax i can't reproduce this. Can you help me by pasting your Slug
field implementation from your resource?
Alex Howes commented
Had the same issue, I believe this is because unless you use any of the functions that call setOption()
the component is never never recieving the options
array.
@DODMax a quick fix for this would be to use use the Slug field like so Slug::make('Slug')->withMeta(['options' => ['event' => 'keyup']])
@drobee I think if you implement a jsonSerialize
function and merge options with the parent's jsonSerialize
Robert Dezso commented
Thank you, @aihowes! However i found a better solution. It's fixed now in the latest release.