The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.
Home > @edtr-io/store > hasFocusedDescendant
hasFocusedDescendant variable
[[Selector]] that checks whether the document with the given id has a
focused descendant. In contrast to [[hasFocusedChild]], this also returns
true
if the focused document is an indirect child (e.g. a child of a child of
a child).
hasFocusedDescendant: Selector<boolean, [string]>