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

Invalid prop type for content StaticElement #155

Closed
nclemeur opened this issue Feb 27, 2024 · 2 comments
Closed

Invalid prop type for content StaticElement #155

nclemeur opened this issue Feb 27, 2024 · 2 comments

Comments

@nclemeur
Copy link

Environment

vite 5.1.3
vue 3.4.19
vueform/vueform:1.8.0
theme: vueform

Reproduction

I would like to use a Function for the content prop, but only Object or String are allowed. Using a function works but vue generate some pesky warnings in dev, about prop type check failure.
Could the type Function be added to the allowed types?

Describe the bug

Unecessary warnings in dev consoles

Additional context

No response

Logs

runtime-core.esm-bundler.js:44 [Vue warn]: Invalid prop: type check failed for prop "content". Expected String | Object, got Function  
  at <StaticElement type="static" wrap=false  ... >
@adamberecz
Copy link
Collaborator

Should be now fixed in 1.9.0.

@nclemeur
Copy link
Author

nclemeur commented Mar 7, 2024

Yes, indeed no more pesky warnings! Thank you very much for the prompt resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants