Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Checkboxradio: Deprecate style option mini #7463

Closed
@gabrielschulhof

Description

@gabrielschulhof

There's a caveat with removal of the mini option:

<label>Checkbox<input type="checkbox" data-wrapper-class="ui-mini"></label>

will not result in a mini checkbox, because the wrapperClass option is examined during the creation of the wrapper in _wrapper() which is called from _enhance(), but then _enhance() calls _setOptions({ ... mini: this.options.mini, ... }) which causes the removal of the ui-mini class, because the default value for the mini option is false.

One possible solution to this is to remove the addition of the this.options.wrapperClass from _wrapper() and to add wrapperClass: this.options.wrapperClass to the _setOptions() call being made from _enhance().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions