Skip to content

Add option to update dropdown menu only after async callback is done - #84

Open
SparrowFix wants to merge 3 commits into
corejavascript:masterfrom
SparrowFix:master
Open

Add option to update dropdown menu only after async callback is done#84
SparrowFix wants to merge 3 commits into
corejavascript:masterfrom
SparrowFix:master

Conversation

@SparrowFix

Copy link
Copy Markdown

Add option to refresh suggestion list on DOM only after async callback is done

On some use cases it can be useful to render the search suggestions after all suggestions are available from synchronous and asynchronous callback of a dataset. So, the flag "updateOnAsync" is introduced to have the possibility to activate the new mode, to render the whole result after asynchronous callback only.

If you want to display the whole result only, then this mode can be used now. Also, if you work with asynchronous data only and will not use a pending template, this mode ensures to prevent closing and reopen the dropdown menu on keypress (which can be misinterpreted as an ugly flickering, while the user types something) provokes by the empty or unused synchronous callback.

Viktor Spatzig added 3 commits July 27, 2016 12:45
…k is done
On some use cases it can be useful to render the search suggestions after all suggestions are available from synchronus and asynchronus callback of a dataset. So, the flag "updateOnAsync" is introduced to have the possibility to activate the new mode, to render the whole result after asynchronus callback only.
If you want to display the whole result only, then this mode can be used now. Also, if you work with asynchronus data only and will not use a pending template, this mode ensures to prevent closing and reopen the dropdown menu on keypress (which can be misinterpreted as an ugly flickering, while the user types something) provokes by the empty or unused synchronus callback.
@jlbookerjlbooker added this to the v0.11.3 milestone Nov 1, 2016
@jlbookerjlbooker modified the milestones: v1.1.0, v1.2.0Dec 21, 2016
@franklinjavier

Copy link
Copy Markdown

Any update on this?

@jlbooker

Copy link
Copy Markdown
Contributor

@franklinjavier It needs review and resolution of the merge conflicts in dataset.js.

@lenovouserlenovouser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM if you fix the merge conflicts. Thanks! 👍

@lenovouser
lenovouser removed the request for review from core-system-devFebruary 8, 2017 23:02
@franklinjavier

Copy link
Copy Markdown

👍🏼

@OkayItsMikael

Copy link
Copy Markdown

Any updates here?

@jlbookerjlbooker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jlbooker

Copy link
Copy Markdown
Contributor

Just need to look into the conflicts in dataset.js and then this can be merged.

@judowalker

Copy link
Copy Markdown

Will this fix #147?

Any estimate on when this will be merged?

@omggga

Copy link
Copy Markdown

Hello there, any news on this task? :<

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@SparrowFix@franklinjavier@jlbooker@OkayItsMikael@judowalker@omggga@lenovouser