Movatterモバイル変換


[0]ホーム

URL:


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

<BFormFile> completely different to BV5 #2953

Open
Assignees
dwgraycopilot-swe-agent
Labels
compatibility enhancementFeature missing that is in bootstrap.js v5 or bootstrap-vue v2
@n-rowe

Description

@n-rowe

Missing feature is from

Bootstrap v5

Docs

https://getbootstrap.com/docs/5.3/forms/form-control/#file-input

Describe the missing feature

With just a standard<BFormFile> component it does not match bootstrap v5 at all.

The release notes also do not contain a notice that theBFormFile component was majorly rewritten because it was tagged as adocs change in its commit.

Standard Usage

BVN FormFile component (pre v0.41.0)

<BFormFilev-model="files" multiple />
Image
<BFormFilev-model="files" :state="false" multiple />
Image

BVN FormFile component (post v0.41.0)

<BFormFilev-model="files" multiple />
Image
<BFormFilev-model="files" :state="false" multiple />
Image

Bootstrap file input

https://getbootstrap.com/docs/5.3/forms/form-control/#file-input

Default<input type="file">
Image

Invalid<input type="file">
Image

Differences

  1. The 'Browse' button should be on the left.
  2. There should be click detection on both the 'browse' button and file drop handler.
  3. There should be a default 'placeholder' value that matches Bootstrap V5 of 'No files selected.'
  4. The button background colour does not match.
  5. The buttons borders hide the state border.
  6. The state icon is no longer displayed.
  7. Previously it would inherit the styles of.input-group > .form-control which would mean it hasflex-grow: 1, this no longer applies so it does not get the full width it should in input groups.

Plain Usage

BVN Plain component

<BFormFilev-model="files" multiple plain />
Image

Differences

It is completely unstyled.
This is because when plain it adds theform-control-file class even though it should beform-control
Image

There's not even a way to override this asclass adds to the parent div and there's noinput-class.

Metadata

Metadata

Assignees

Labels

compatibility enhancementFeature missing that is in bootstrap.js v5 or bootstrap-vue v2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp