drobee / nova-sluggable

Slug field for Laravel Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read property 'event' of undefined

DODMax opened this issue · comments

Getting the following error since I updated from 1.1.1 to 1.1.2.
image

Cheers!

@DODMax i can't reproduce this. Can you help me by pasting your Slug field implementation from your resource?

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

Thank you, @aihowes! However i found a better solution. It's fixed now in the latest release.