WordPress/gutenberg
Ver no GitHubDocumentation: Clarify the behavior of parent when empty during block registration
Open
#15.731 aberto em 20 de mai. de 2019
Good First IssueNeeds Dev[Feature] Block API[Type] Developer Documentation
Métricas do repositório
- Stars
- (9.607 stars)
- Métricas de merge de PR
- (Mesclagem média 12d 18h) (509 fundiu PRs em 30d)
Description
Part of https://github.com/WordPress/gutenberg/issues/41236.
Describe the bug
It might be good to update the documentation here to clarify that you can restrict it to the root if you pass an empty array. (Also good to check if there are tests for this or if it just happens to work.)
This also leads to the question what the default is for this parameter. undefined? null? In any case just "Type: Array" doesn't seem correct.