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

Fix [Upload]: Vue Compat: deprecation INSTANCE_ATTRS_CLASS_STYLE (#16) #219

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

kikuomax
Copy link
Collaborator

Related issue:

Proposed Changes

  • Introduce a new prop compat-fallthrough to Upload, which determines if the class, style, and id attributes are applied to the root <label> element or the underlying <input> element. If true, they are applied to the root <label> element, which is compatible with Buefy for Vue 2.
    • Replace the classAndStyle computed value with rootAttrs, which did not address the id attribute
  • Add test cases for the compat-fallthrough prop of Upload
  • Explain the compat-fallthrough prop in the Upload documentation page
  • Introduce the compat-fallthrough prop of Upload as a new feature in CHANGELOG

- `Upload` introduces a new prop `compat-fallthrough` which determines
  if the `class`, `style`, and `id` attributes are applied to the root
  `<label>` element or the underlying `<input>` element. Since Vue 3
  changed the fallthrough behavior, `Upload` became incompatible with
  that of Buefy for Vue 2. The default value of this prop is given by
  the `defaultCompatFallthrough` config option that is `true` by default
  (compatible with Buefy for Vue 2).

  Replaces the `classAndStyle` computed value with `rootAttrs`, which
  did not address the `id` attribute.
- Adds test cases for the `compat-fallthrough` prop of `Upload`
Copy link

@wesdevpro wesdevpro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🏍💨

@kikuomax kikuomax merged commit b28f56f into ntohq:dev Mar 29, 2024
3 checks passed
@kikuomax kikuomax deleted the upload-compat-fallthrough branch March 29, 2024 02:46
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

Successfully merging this pull request may close these issues.

None yet

2 participants