redactor
redactor copied to clipboard
Fields disappearing when changing entry type in a structure
Description
In a structure, when creating a new entry and selecting a different entry type, the textarea of the redactor fields are disappearing. They reappear after saving the entry and going back into it. Here is the console error:
Uncaught TypeError: Cannot read property 'menu' of undefined
at s.constructor.updateTabs (CP.js:525)
at s.constructor.handleWindowResize (CP.js:484)
at s.constructor.<anonymous> (garnish.js:889)
at o (jquery.js:10780)
at dispatch (jquery.js:5430)
at v.handle (jquery.js:5234)
at Object.trigger (jquery.js:8719)
at jquery.js:8797
at Function.each (jquery.js:385)
at b.fn.init.each (jquery.js:207)
Steps to reproduce
- Create a structure with multiple entry types.
- Create an entry in the structure.
- Switch the entry type.
Additional info
- Craft version: Solo 3.6.13
- PHP version: 7.2.24
- Database driver & version: MySQL 5.7.33
- Plugins & versions: Redactor 2.8.7
Yes I am seeing this issue too.


I noticed that this only happens when you have multiple tabs in the entry type. For the client's sake I put all the fields in the same tab at the moment.
Can you still reproduce this on the latest Craft version? There's nothing that would be Redactor's fault, as the JS error just prevents other JS from executing.