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

Backport PR #15479 on branch 4.0.x (Workaround/input box focus) #15563

Merged

Conversation

krassowski
Copy link
Member

Backport PR #15479 on branch 4.0.x (Workaround/input box focus)

* Re-focus input after modifying model, keep input for 0.5s

* Add a test case against the focus loss issue

Tested that it fails on main reproducing the issue:

```
    - Expected  - 0
    + Received  + 8

      from time import sleep
      input()
      print('before sleep')
      sleep(0.1)
      print('after sleep')
    +
    +
    + x
    +
    +
    +
    +
    +
```

* Give up on using animations and :has() solution due to FF bug

https://bugzilla.mozilla.org/show_bug.cgi?id=1867893

`:has()` is not only not yet officially supported but is hard to
implement well so no wonder there are difficult invalidation bugs

* More robust stdin test

(cherry picked from commit 68be103)
@krassowski krassowski added the bug label Dec 26, 2023
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@krassowski krassowski added this to the 4.0.x milestone Dec 26, 2023
@github-actions github-actions bot added pkg:outputarea tag:Testing tag:CSS For general CSS related issues and pecadilloes Design System CSS labels Dec 26, 2023
@krassowski
Copy link
Member Author

usage2 failures are unrelated and tracked in #15570, visual tests failures are unrelated (a fix needs backporting).

@krassowski krassowski merged commit e68754b into jupyterlab:4.0.x Dec 27, 2023
73 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Design System CSS pkg:outputarea tag:CSS For general CSS related issues and pecadilloes tag:Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant