Skip to content

Can't wrap f7-list-input with a custom component inside an f7-list #4317

@craigrileyuk

Description

@craigrileyuk
  • Framework7 version: 8.3.4
  • Vue.js version: 3.5.13
  • Platform and Target: All

Describe the bug

We wanted to wrap the f7-list-input component to add some standard functionality like using v-model instead of v-model:value and being able to show errors with a single prop etc.

However, no descendents of f7-list will work if they are custom components, if causes the list to throw an index error.

Even a simple wrapper component like:

<template>
    <f7-list-input></f7-list-input>
</template>

causes an error.

To Reproduce

  • Create an f7-list.
  • Create a Vue component wrapper for f7-list-input
  • Fails to render

Expected behavior

Application should not error just because you're transparently wrapping Framework7 components

Actual Behavior

List indexing error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions