Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Dropdown/Multiselect : Typeahead dropdown/multiselect list doesn't contain attributes id when searching #5053

Closed
pwpatton opened this issue Apr 5, 2021 · 1 comment · Fixed by #5213
Assignees
Labels
focus: automation For testing or automation enablement team: landmark For Landmark issues type: bug 🐛 [2] Velocity rating (Fibonacci)

Comments

@pwpatton
Copy link
Contributor

pwpatton commented Apr 5, 2021

Describe the bug
The id attribute prefix is missing from a dropdown list when searching through a call back (i.e. when reload === 'typeahead')

To Reproduce

Steps to reproduce the behavior:

  1. Put attached examples in place
  2. Open example and click dropdown, notice the items in the list to have the id prefix applied
  3. type in a search term, notice the items in the list to do not have the id prefix applied

Expected behavior
id prefix should applied in dropdown list when returning results through the source callback

Version

  • ids-enterprise: [4.38

Screenshots
If applicable, add screenshots to help explain your problem.

Platform

  • Infor Application/Team Name: Landmark
  • OS Version: Windows 10
  • Browser Name: chrome
  • Browser Version: 89.0.4389.90 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.

For dropdown/example-ajax.html change options to this:

<script>
  $('body').on('initialized', function() {

    $('#ajax-test').dropdown({
      source: function (response, term) {
        var apiRoute = '{{basepath}}api/states';
        if (term && typeof term === 'string' && term.length) {
          apiRoute += '?term=' + term;
        }

        $.getJSON(apiRoute, function(data) {
          response(data);
        });
      },
      attributes: [{'name': 'id', 'value': 'SomeIdPrefix'}],
      showSearchUnderSelected: true,
      reload: 'typeahead'
    });

  });
</script>

For multiselect/example-ajax.html change options to this:

    $('#ajax-test').multiselect({
      source: callExternalSource,
      attributes: [{'name': 'id', 'value': 'SomeIdPrefix'}],
      showSearchUnderSelected: true,
      reload: 'typeahead'
    });
@tmcconechy tmcconechy added [2] Velocity rating (Fibonacci) type: bug 🐛 labels Apr 5, 2021
@tmcconechy tmcconechy changed the title typeahead dropdown/multiselect list doesn't contain attributes id when searching Dropdown/Multiselect : Typeahead dropdown/multiselect list doesn't contain attributes id when searching Apr 5, 2021
@tmcconechy tmcconechy added this to To do in Enterprise 4.52.x (May 2021) Sprint via automation Apr 5, 2021
@ghost ghost added team: landmark For Landmark issues focus: automation For testing or automation enablement labels Apr 5, 2021
@ghost ghost assigned ericangeles Apr 28, 2021
@ericangeles ericangeles moved this from To do to In progress in Enterprise 4.52.x (May 2021) Sprint May 11, 2021
@ericangeles ericangeles moved this from In progress to Pending Review in Enterprise 4.52.x (May 2021) Sprint May 20, 2021
@tmcconechy tmcconechy moved this from Pending Review to Ready for QA (beta) in Enterprise 4.52.x (May 2021) Sprint May 25, 2021
@janahintal
Copy link
Contributor

QA Passed. Thank you.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: automation For testing or automation enablement team: landmark For Landmark issues type: bug 🐛 [2] Velocity rating (Fibonacci)
Projects
No open projects
4 participants