@frame-kit/ui-ng 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -395,6 +395,12 @@ class FormFieldComponent {
395
395
  * Content queries have resolved by this point, and the element is still in
396
396
  * the DOM either way, so an element carrying the attribute with no resolved
397
397
  * directive is an unambiguous signal.
398
+ *
399
+ * The signal has to be an ELEMENT, though. A consumer who wraps the
400
+ * projected node in `@if` leaves the block's anchor comment in the slot
401
+ * whenever the condition is false, and a comment is a child node — so
402
+ * testing for any child at all reports a missing import on a template
403
+ * whose import is present and correct.
398
404
  */
399
405
  ngAfterContentInit() {
400
406
  if (isDevMode()) {
@@ -416,7 +422,7 @@ class FormFieldComponent {
416
422
  if (resolved)
417
423
  continue;
418
424
  const wrapper = this.host.nativeElement.querySelector(`.fk-form-field__${slot}`);
419
- if (!wrapper?.hasChildNodes())
425
+ if (!wrapper?.firstElementChild)
420
426
  continue;
421
427
  console.warn(`[fk-form-field] Content was projected into the ${slot} slot but ` +
422
428
  `\`${directive}\` did not resolve, so the field will not be spaced ` +