Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Conversation

@marie-j
Copy link
Contributor

@marie-j marie-j commented Oct 25, 2018

Fix/oui select picker blank section

Description of the Change

If there was no match attribute set and a section was added, an empty section was created
Also, if no match attribute, select displayed empty values

<oui-select-picker label="Disabled"
match="name"
description="Disabled select picker"
disabled>
Copy link
Contributor

@AxelPeter AxelPeter Oct 25, 2018

Choose a reason for hiding this comment

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

Why removing the disabled example ? If needed, we could add another section of examples.

Copy link
Contributor

@AxelPeter AxelPeter left a comment

Choose a reason for hiding this comment

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

The fix seems OK for me, but why updating the existing examples ?
Were they bad or incorrect ?

If no match value is defined an empty section is created
@marie-j marie-j force-pushed the fix/oui-select-picker-blank-section branch from 42ce799 to 1a17df6 Compare October 25, 2018 11:48
<span class="oui-select-picker__value"
ng-bind=":: $ctrl.getFirstValueMatch($ctrl.match)"
ng-if="$ctrl.values.length === 1"></span>
ng-bind=":: $ctrl.getFirstValueMatch($ctrl.match)">
Copy link
Contributor

Choose a reason for hiding this comment

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

No alignment ? (For lines 31 & 33)

@AxelPeter AxelPeter merged commit 2fa7c15 into develop Oct 30, 2018
@AxelPeter AxelPeter deleted the fix/oui-select-picker-blank-section branch October 30, 2018 09:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants