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 with Lazy Loading: A previously selected item appears instead of the actually selected item #6182

Closed
JaneSjs opened this issue May 12, 2023 · 3 comments · Fixed by #6257, #6366 or #6501
Assignees
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented May 12, 2023

To reproduce the issue, refer to https://surveyjs.io/form-library/examples/lazy-loading-dropdown/reactjs and start typing a country name. Click the PgDn keyboard arrow to select an item. Click Enter - the previous item appears.

2023-05-12_8-38-18.mp4
OlgaLarina pushed a commit that referenced this issue May 26, 2023
…tem appears instead of the actually selected one
novikov82 pushed a commit that referenced this issue May 29, 2023
…tem appears instead of the actually selected one (#6257)

Co-authored-by: OlgaLarina <olga.larina.dev@gmail.com>
@OlgaLarina OlgaLarina added this to the v1.9.90 milestone May 30, 2023
@RomanTsukanov RomanTsukanov changed the title Dropdown with Lazy Loading - The previously selected item appears instead of the actually selected one Dropdown with Lazy Loading: A previously selected item appears instead of the actually selected item May 30, 2023
@JaneSjs JaneSjs reopened this Jun 9, 2023
@JaneSjs
Copy link
Contributor Author

JaneSjs commented Jun 9, 2023

The issue remains in v1.9.91: https://surveyjs.io/form-library/examples/lazy-loading-dropdown/reactjs.

A customer reported about it at T13435 - Value not assigned when typing on lazy-loaded dropdowns
https://surveyjs.answerdesk.io/internal/ticket/details/T13435.

2023-06-09_14-38-10.mp4

novikov82 added a commit that referenced this issue Jun 15, 2023
novikov82 added a commit that referenced this issue Jun 18, 2023
…instead of the actually selected item - fixed tests

Fixes #6182
novikov82 added a commit that referenced this issue Jun 19, 2023
andrewtelnov added a commit that referenced this issue Jun 19, 2023
…Loading-A-previously-selected-item-appears-instead-of-the-actually-selected-item

#6182 Dropdown with Lazy Loading: A previously selected item appears instead of the actually selected item
@OlgaLarina OlgaLarina modified the milestones: v1.9.90, v1.9.93 Jun 20, 2023
@JaneSjs JaneSjs reopened this Jun 30, 2023
@JaneSjs
Copy link
Contributor Author

JaneSjs commented Jun 30, 2023

The issue remains in v1.9.96. It is reproduced in our online demo: https://surveyjs.io/form-library/examples/lazy-loading-dropdown/reactjs.

2023-06-30_15-04-03.mp4

novikov82 added a commit that referenced this issue Jul 10, 2023
OlgaLarina added a commit that referenced this issue Jul 11, 2023
…Loading-A-previously-selected-item-appears-instead-of-the-actually-selected-item_1

#6182 Dropdown with Lazy Loading: A previously selected item appears instead of the actually selected item
@OlgaLarina OlgaLarina assigned OlgaLarina and unassigned OlgaLarina Jul 11, 2023
@OlgaLarina OlgaLarina removed this from the v1.9.93 milestone Jul 11, 2023
@OlgaLarina OlgaLarina added this to the v1.9.97 milestone Jul 11, 2023
@dongosiddik
Copy link

Hello team,

I am currently retrieving the complete list of countries from a RESTful Web service. My own API returns a very large dataset that takes too much time to load.

I've seen that it's necessary to use "Lazy Loading," but I'm having trouble incorporating it into this JSON. Please correct me.

Additionally, I would like to know what the differences are between version v1 and v2.

Best regards.

`{
"type": "dropdown",
"name": "country",
"title": "Select a country",
"description": "Une liste complète des pays est interrogée à partir d'un service Web RESTful.",
"choicesByUrl": {
"url": "https://surveyjs.io/api/CountriesExample",
"valueName": "identifier"
},
"defaultValue": "FRA",
"choicesLazyLoadEnabled": true,
"choicesLazyLoadPageSize": 40

    },`

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