Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

fix(uiSelectHeaderGroupSelectableDirective): do not issue error if feature is disabled; apply selectable feature after options list changed/filtered; do not select unnamed group #2069

Open
Klinton90 wants to merge 3 commits into angular-ui:master
base: master
Choose a base branch
Loading
from Klinton90:master

Conversation

@Klinton90
Copy link

@Klinton90 Klinton90 commented Oct 24, 2017
edited
Loading

Trying to use new feature on my project. Would like to fix issues as soon as I find it.

  1. We use wrapper around ui-select, so we always need uiSelectHeaderGroupSelectableDirective directive to exist on template even when ui-select is used for single/no-groups mode. In current implementation, if directive is disabled and other conditions do not pass, console.error() will be executed. That fix prevents error message to be shown for disabled directive.

  2. If list of available options is filtered on the fly (based on $select.search, e.g. ng-repeat="options | filter: $select.search"), not all group headers receive ui-select-header-group-selectable class, as DOM is updated after enableClick() function runs.

  3. Do not add click listener to unnamed group

tymofieo added 2 commits October 24, 2017 16:30
...ature is disabled, but directive exists on template
@Klinton90 Klinton90 changed the title (削除) fix(uiSelectHeaderGroupSelectableDirective): do not issue error if feature is disabled (削除ここまで) (追記) fix(uiSelectHeaderGroupSelectableDirective): do not issue error if feature is disabled and apply selectable feature after options list changed/filtered (追記ここまで) Oct 25, 2017
Copy link
Contributor

Hi @Klinton90 , look good to me 👍 .

@Klinton90 Klinton90 changed the title (削除) fix(uiSelectHeaderGroupSelectableDirective): do not issue error if feature is disabled and apply selectable feature after options list changed/filtered (削除ここまで) (追記) fix(uiSelectHeaderGroupSelectableDirective): do not issue error if feature is disabled; apply selectable feature after options list changed/filtered; do not select unnamed group (追記ここまで) Oct 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /