Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Dropdown] Show "no results" when filterRemoteData is false and response is empty #300

Merged
merged 4 commits into from
Dec 17, 2018

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Dec 12, 2018

Description

When a remoteApi returns no results according to the search query, the dropdown was still showing the previous filtered list when filterRemoteData was false (which is default)

Also fixed the behavior in combination that "no results" prevented possible allowed useradditions. So if allowAdditions is true, then "No results" will not be shown (this is how it already behaves when remote Api data was not used)

Hint: If you try to test the allowAdditions:true feature in the following fiddles and it does not work, then jsdelivr still caches an old commit. If in doubt, tell me, i'll put the whole JS in the fiddle then)

Testcase

  • Follow the 2 steps in the fiddles

Unfixed

https://jsfiddle.net/c092thvs/

Fixed

https://jsfiddle.net/c092thvs/1/

Closes

Semantic-Org/Semantic-UI#6603

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews labels Dec 12, 2018
@lubber-de lubber-de added the tag/sui-issue Taken from an existing Issue/PR of SUI label Dec 12, 2018
prudho
prudho previously approved these changes Dec 13, 2018
Copy link
Contributor

@prudho prudho left a comment

Choose a reason for hiding this comment

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

LGTM

y0hami
y0hami previously approved these changes Dec 13, 2018
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

@y0hami y0hami dismissed stale reviews from prudho and themself via cef03a4 December 13, 2018 09:37
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

@lubber-de lubber-de added this to the 2.7.x milestone Dec 15, 2018
Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

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

LGTM

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
lang/javascript Anything involving JavaScript tag/sui-issue Taken from an existing Issue/PR of SUI type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants