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

Changing slider with keyboard in Column jumps to end of cell #6394

Closed
hoxbro opened this issue Feb 26, 2024 · 8 comments · Fixed by #6825
Closed

Changing slider with keyboard in Column jumps to end of cell #6394

hoxbro opened this issue Feb 26, 2024 · 8 comments · Fixed by #6825

Comments

@hoxbro
Copy link
Member

hoxbro commented Feb 26, 2024

The following example in a notebook will jump to the end of the output cell when a slider changes with the keyboard.

import panel as pn
pn.extension()

pn.widgets.IntSlider(end=10, height=1200)
screenrecord-2024-02-26_19.32.31.mp4

The same does not seem to be the case when using pn.Row + large width

@hoxbro hoxbro added the TRIAGE Default label for untriaged issues label Feb 26, 2024
@philippjfr
Copy link
Member

Duplicate, I think, see #6314

@hoxbro
Copy link
Member Author

hoxbro commented Feb 26, 2024

I'm using Jupyterlab 4.1.2, which should be the fixed version. The cell does not lose focus, so I can keep updating the slider even though I can't see it.

@hoxbro
Copy link
Member Author

hoxbro commented Feb 26, 2024

Downgrading jupyterlab to 4.0.12 fixes the problem, so it relates to your issue.

@hoxbro
Copy link
Member Author

hoxbro commented Mar 26, 2024

Also, there is a problem with non-active select.

screenrecord-2024-03-26_17.59.26.mp4

@hoxbro
Copy link
Member Author

hoxbro commented Mar 26, 2024

Another case is ChatAreaInput, which does not work with shift+enter because it reruns the current cell:

import panel as pn

pn.extension()

pn.chat.ChatAreaInput(placeholder="Type something, and press Enter to clear!")
screenrecord-2024-03-26_19.15.09.mp4

@hoxbro hoxbro added regression and removed TRIAGE Default label for untriaged issues labels Apr 3, 2024
@hoxbro
Copy link
Member Author

hoxbro commented May 9, 2024

I also see it when I edit the text in the Tabulator widget

@hoxbro
Copy link
Member Author

hoxbro commented May 9, 2024

@krassowski, do you have any recommendations for what to do?

@krassowski
Copy link

I would suggest adding data-lm-suppress-shortcuts="true" to the wrapper element, see https://jupyterlab.readthedocs.io/en/4.1.x/extension/notebook.html#keyboard-interaction-model

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

Successfully merging a pull request may close this issue.

3 participants