Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CFormControlWrapper: Fixed Vue's warning about non-function value for default slot for floatingLabel #210

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

Merged
mrholek merged 1 commit into coreui:main from gfoidl:form-control-wrapper-no-vue-warning
May 11, 2022

Conversation

Copy link
Contributor

@gfoidl gfoidl commented May 9, 2022

Fixes the warning Vue emits when on form input the floatingLabel is used.

[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance. 
 at <CFormFloating> 
 at <CFormControlWrapper describedby=undefined feedback=undefined feedbackInvalid="Zahl muss eingegeben werden." ... > 
 at <CFormInput id="pu-form-kontaktzeit" class="mb-3" floatingLabel="Kontaktzeit [s]" ... > 
 at <CCol> 
 at ...

Cf. StackOverflow: "Non-function value encountered for default slot." in Vue 3 Composition API component

Copy link
Member

mrholek commented May 11, 2022

@gfoidl thank you for your help.

gfoidl reacted with thumbs up emoji

@mrholek mrholek reopened this May 11, 2022
@mrholek mrholek merged commit a4f4f52 into coreui:main May 11, 2022
@gfoidl gfoidl deleted the form-control-wrapper-no-vue-warning branch May 12, 2022 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@mrholek mrholek mrholek approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /