Checks whether the list item has unscoped text content.
()
| 311 | |
| 312 | /** Checks whether the list item has unscoped text content. */ |
| 313 | private _checkDomForUnscopedTextContent() { |
| 314 | this._hasUnscopedTextContent = Array.from<ChildNode>( |
| 315 | this._unscopedContent!.nativeElement.childNodes, |
| 316 | ) |
| 317 | .filter(node => node.nodeType !== node.COMMENT_NODE) |
| 318 | .some(node => !!(node.textContent && node.textContent.trim())); |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | /** |