Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToggleFieldPreview error for value prop #6249

Closed
distantnative opened this issue Feb 8, 2024 · 2 comments · Fixed by #6367
Closed

ToggleFieldPreview error for value prop #6249

distantnative opened this issue Feb 8, 2024 · 2 comments · Fixed by #6367
Assignees
Labels
type: bug 🐛 Is a bug; fixes a bug
Milestone

Comments

@distantnative
Copy link
Member

[Vue warn]: Invalid prop: type check failed for prop "value". Expected Boolean, got String with value "true".

found in

---> <KToggleInput> at /Users/nhoffmann/Sites/kirby/sites/sandbox/kirby/panel/src/components/Forms/Input/ToggleInput.vue
       <KToggleFieldPreview> at /Users/nhoffmann/Sites/kirby/sites/sandbox/kirby/panel/src/components/Forms/Previews/ToggleFieldPreview.vue
@distantnative distantnative added the type: bug 🐛 Is a bug; fixes a bug label Feb 8, 2024
@Messa1
Copy link

Messa1 commented Feb 9, 2024

Is that this behavior? I saw that after I have updated form 4.0.1 to 4.1.0
Bildschirmfoto 2024-02-09 um 20 11 30

   sections:
          residential:
            label: Objekte
            type: pages
            image: page.thumbnail.toFile
            template: residential
            search: true
            query: page.childrenAndDrafts
            create:
              - residential
            layout: table
            columns:
              info: false
              subheader:
                label: Untertitel
                width: 1/3
              referenz:
                width: 1/6
                value: "{{ page.referenz }}"

distantnative added a commit that referenced this issue Mar 24, 2024
@distantnative distantnative self-assigned this Mar 24, 2024
@distantnative distantnative added this to the 4.2.0 milestone Mar 24, 2024
distantnative added a commit that referenced this issue Mar 24, 2024
@distantnative distantnative linked a pull request Mar 24, 2024 that will close this issue
2 tasks
@distantnative
Copy link
Member Author

@Messa1 Yes, connected. I think I found a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants