Problem/Motivation
If you add 47 or more blocks in different regions on the Block Layout page, then you try to drag any block to a different region, you will get the following javascript error in the console:
Cannot read properties of undefined (reading 'className')
File: block.js?v=9.2.6:106
Proposed resolution
I noticed that if you have 46 or less blocks then the weight fields in the layout page are 'select' elements, and this is what the block.js looks for. But when you have 47 or more blocks then the weight fields are input elements and hence the JS cannot find them. The JS needs to look for input elements too.
Comments
Comment #2
harcher commentedComment #3
cilefen commentedComment #4
nod_Comment #8
tom kondaI cannot reproduce this issue on the 11.x branch.
Steps to try to reproducing
custom_theme.info.yml