jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

TagPicker styleName attribute removes tag-picker styles #671

Closed Flaurite closed 2 years ago

Flaurite commented 2 years ago

Description

Steps to reproduce

  1. Configure TagPicker and add styleName in the XML:
    <tagPicker id="tagPicker"
           optionsContainer="orderLinesDc"
           stylename="medium"/>
  2. Open screen and add some records to the field.

ER image

AR image


QA

Additional to the case above:

  1. Try to invoke getStyleName():
    notifications.create()
        .withCaption(tagPickerSimple.getStyleName())
        .show();

    The empty string or stylename (if it's defined) should be return.

Flaurite commented 2 years ago

Refactored get/set/remove style name methods to work the same as other components. QA description is updated.