I added a light switch field to my hyper field (with Entry and URL type enabled). When i open an entry that has a the hyper field in a slideout, the custom light switch isn't working when i click it. It only works after i save the entry once with the URL type active. After that when I open the entry again, the URL type is the new default and the light switch works.
There seems to be something wrong when switching from link type. The custom field's functionality (maybe javascript) doesn't seem to trigger properly.
Steps to reproduce
Make a link field (with options Entry and URL, default on Entry)
Add a custom light switch field to the first tab of the URL type (and only the URL type)
Add the link field to entry type A
Make an entries field where you can select one or more entries of entry type A
Make a new section with entry type B
Add the entries field to the section of entry type B
In an entry of type B, try to make a new entry of type A (in a slideout)
Describe the bug
I added a light switch field to my hyper field (with Entry and URL type enabled). When i open an entry that has a the hyper field in a slideout, the custom light switch isn't working when i click it. It only works after i save the entry once with the URL type active. After that when I open the entry again, the URL type is the new default and the light switch works.
There seems to be something wrong when switching from link type. The custom field's functionality (maybe javascript) doesn't seem to trigger properly.
Steps to reproduce
Craft CMS version
5.1.7
Plugin version
2.0.1
Multi-site?
Yes
Additional context
No response