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

pasting outside of cells always prevents default action #284

Closed
iisakkirotko opened this issue Jun 7, 2024 · 0 comments · Fixed by #285
Closed

pasting outside of cells always prevents default action #284

iisakkirotko opened this issue Jun 7, 2024 · 0 comments · Fixed by #285
Labels
bug Something isn't working

Comments

@iisakkirotko
Copy link
Contributor

Description

If a user tries to paste anything outside a cell, the paste function is called. This function checks if the user is attempting to paste cells into the notebook, but calls event.preventDefault regardless of whether that is the case or not. This means that if the objective is anything other than pasting cells into the notebook nothing will happen. This issue happens only with Jupyter notebooks - Jupyter lab behaves the expected way.

Reproduce

Run a notebook with this code in a cell:

import solara

@solara.component
def Page():
    solara.AppBarTitle("debug")
    solara.v.Textarea()

Page()

Then click on the full screen button on the top right of the output cell.
Try to paste anything into the text field while the view is in full screen mode.

Expected behavior

Pasting into the text field works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants