@mintjamsinc/ichigojs 0.1.57 → 0.1.58

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.
@@ -8647,6 +8647,14 @@ class VDirectiveManager {
8647
8647
  // Other directives (@click, :class, etc.) will be processed on the cloned/rendered elements.
8648
8648
  const attributes = [];
8649
8649
  if (element.hasAttribute(StandardDirectiveName.V_FOR)) {
8650
+ // <template v-for v-if> is not supported: v-for clones .content (a
8651
+ // DocumentFragment), so the v-if attribute on the <template> itself
8652
+ // is lost. Warn the developer so silent failure is avoided.
8653
+ if (element instanceof HTMLTemplateElement && element.hasAttribute(StandardDirectiveName.V_IF)) {
8654
+ console.warn('[ichigo.js] <template> cannot combine v-for and v-if. ' +
8655
+ 'The v-if will be ignored. Move v-if to an inner element, ' +
8656
+ 'or replace <template> with a regular element.', element);
8657
+ }
8650
8658
  // For v-for template element: only process v-for and :key
8651
8659
  // Other attributes will be processed when child VNodes are created for cloned elements
8652
8660
  attributes.push(element.getAttributeNode(StandardDirectiveName.V_FOR));