Skip to content

Conversation

@kkthxbye-code
Copy link
Contributor

Fixes: #9754

This PR tries to fix an unidentified deadlock in chrome when opening certain slim-select fields. I tested as much as I could, but as I am still not sure what actually causes this, I think another valid (maybe safer) solution would be to revert #9735 and #9696 and reopen #9632 until someone who can untangle the hell of async events being fired when opening a slim-select field - I'll let you decide @jeremystretch .

@kkthxbye-code kkthxbye-code changed the title Fix chrome deadlock when opening some select fields Fixes #9754 - Fix chrome deadlock when opening some select fields Jul 17, 2022
@kkthxbye-code
Copy link
Contributor Author

kkthxbye-code commented Jul 17, 2022

After having a look around I think the issue might be an infinite loop stemming from this eventlistener:

https://github.com/brianvoe/slim-select/blob/e6b42a9c11ba743fab63b5f909d8499239362d98/src/slim-select/slim.ts#L420

As such I am not confident in this fix, or any fix that calls focus() on the input. Not sure how to fix it with messing with unregistering the listener, and as we are already kinda misusing slim-select internals, that's not something I'm comfortable handling correct.

I created a new PR to revert the previous changes. When that is done, we need to re-open #9632 and wat for someone with more js experience to show up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selecting the position field on device creation page without selecting a rack crashes the chrome tab

1 participant