forked from buefy/buefy
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix [Upload]: Vue Compat: deprecation INSTANCE_ATTRS_CLASS_STYLE (#16) (
#219) * feat(lib): add compat-fallthrough prop to Upload - `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. * test(lib): test Upload fallthrough behavior - Adds test cases for the `compat-fallthrough` prop of `Upload` * chore(docs): explain compat-fallthrough prop of Upload * docs(CHANGELOG): explain compat-fallthrough prop of Upload
- Loading branch information
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters