Open samnabi opened 7 years ago
I added a pull request with this functionality. Could you test this @samnabi? Thanks a lot.
The tab now switches properly within a structure modal, but it causes a Javascript bug that freezes the browser.
A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
Script: http://www.shopkit.local/panel…s/js/dist/panel.min.js?v=2.4.1:4
Hard to debug the issue here, since line 4 of the minified JS file is huge.
I think this happens when having another plugin installed as I still can't reproduce it. Could you try disabling your installed plugins? That way I can probably debug it.
Looks like this error is only present on Firefox in OS X. Chrome and Safari seem to work fine.
Steps to replicate:
site/fields
folderlocalhost/panel/pages/blog/edit
Title
blank and switch to Tab Two
Title
field, and then chokes on a JavaScript error
When a user submits a form with error, this plugin switches to the offending tab so they can see where their error is located.
Unfortunately, this behaviour doesn't happen within a structure field.