Skip to content

Conversation

@SparrowFix
Copy link

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.
@jlbooker jlbooker added this to the v0.11.3 milestone Nov 1, 2016
@jlbooker jlbooker modified the milestones: v1.1.0, v1.2.0 Dec 21, 2016
@franklinjavier
Copy link

Any update on this?

@jlbooker
Copy link
Contributor

jlbooker commented Feb 8, 2017

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

Copy link
Contributor

@lenovouser lenovouser left a comment

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-dev February 8, 2017 23:02
@franklinjavier
Copy link

👍🏼

@OkayItsMikael
Copy link

Any updates here?

Copy link
Contributor

@jlbooker jlbooker left a comment

Choose a reason for hiding this comment

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

LGTM

@jlbooker
Copy link
Contributor

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

@judowalker
Copy link

Will this fix #147?

Any estimate on when this will be merged?

@omggga
Copy link

omggga commented Dec 25, 2017

Hello there, any news on this task? :<

Sign up for free to 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