Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

maksimbykov
Copy link

@maksimbykov maksimbykov commented Aug 31, 2022

Fix #356

@maksimbykov
Copy link
Author

@TarekRaafat please review this when you'll have time, thanks❤️

@maksimbykov maksimbykov changed the title hotfix hotfix for select(index) Aug 31, 2022
@AndrewElans
Copy link

Any news on this bug?

@AndrewElans
Copy link

AndrewElans commented Apr 28, 2023

I guess the reason why this TypeError: Cannot set properties of undefined (setting 'event') is fired is because select(index) is called when function init (ctx) is not yet complete.

I have fixed in my case by placing select(index) in the results event which seems to run after init is finished.

Before I tried to call select(index) on window.load and other events but in vain. Also in init event the same error was generated. I guess that even if the init event is fired, the init promise may still be not returned.

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.

API Call to select an resultItem is not working

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.