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

fix: anon users can't double click to edit #694

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Conversation

jimniels
Copy link
Collaborator

This fixes the bug where anonymous users were able to double click a cell and edit it (though changes weren't saved).

It also fixes a bug where double-click/ENTER weren't working for formula/python cells. Now, if you're an anonymous user and you double-click/ENTER on a python cell, the code editor will still open (though you can't edit it).

@vercel
Copy link

vercel bot commented Sep 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quadratic ✅ Ready (Inspect) Visit Preview Sep 15, 2023 5:48pm

@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-694 September 15, 2023 17:43 Inactive
});
}
event.preventDefault();
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this file cause I thought it might be where the double click logic was. But nothing was happening. Then I realized onDoubleClickCanvas doesn't get imported anywhere so it doesn't look like this file gets used — so i deleted it.

@jimniels jimniels merged commit c32e27b into main Sep 15, 2023
6 checks passed
@jimniels jimniels deleted the fix-cell-edit-for-anon branch September 15, 2023 18:00
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.

None yet

3 participants