-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update: Make it possible to change list items even if parent is template locked #43959
Update: Make it possible to change list items even if parent is template locked #43959
Conversation
…is content locked.
Size Change: +6 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on the fence about this one but lean towards maintaining the old behavior.
As I understand templateLock
, it's about locking the "composition" (movement or block insertion/deletion), not locking content. Following that rationale this PR makes sense because the list's content is the list items, the same way the paragraph's content is the characters. It's also the old behavior and I haven't found any report of people complaining about not being lockable.
On the other hand, it's weird to me that it behaves like that. It breaks the conceptual model. Though there're two other blocks that are also unlockable (social links and navigation), so I guess that's ok.
Previous as the list block was a single block, it was possible to add and remove list items even if the list block was nested in a block with templateLock="All". Now, if a list is nested inside a block with templateLock we can not add or remove list items.
This is change that may break some blocks using inner blocks. This PR fixes the issue by using templateLock="False" on the list.
Testing Instructions
Pasted the following blocks on the code editor:
Verified I could add more list items e.g: by pressing enter (on trunk I can't).