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

using custom file input, .invalid-feedback not shown. #133

Open
martinhansen opened this issue Sep 8, 2020 · 1 comment
Open

using custom file input, .invalid-feedback not shown. #133

martinhansen opened this issue Sep 8, 2020 · 1 comment

Comments

@martinhansen
Copy link

martinhansen commented Sep 8, 2020

When using a custom file input, errors on this field is now shown.

@b4.file(form("logo"), Symbol("id") -> "logo", Symbol("_label") -> "Logo", Symbol("placeholder") -> "Select File", Symbol("_custom") -> true, Symbol("accept") -> "image/*")

It looks like the .invalid-feedback div is placed next to the, .custom-file wrapper div, and not next to the input field (inside the custom wrapper div), and then bootstrap css is not applied.

When i move invalid-feedback div, into the wrapper div, everything is good. Also, when using non-custom, everything is also good.

Is there anything to do about this or should i just add some custome css to enable invalid-feedback while inside the .custom-file class?

@cyrus07424
Copy link

cyrus07424 commented Mar 1, 2021

I have same problem.
And same to #127 ?

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

No branches or pull requests

2 participants