-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: remove text edit on double click and drag to reorder #2883
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
Changes from all commits
eb72cab
92fe428
c84c93e
ba19f56
6d6b685
31277e8
52129bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -79,7 +79,12 @@ export const RightPanel = observer(() => { | |||||||||||||||||||
| {selectedTab === EditorTabValue.DEV && <CodeControls />} | ||||||||||||||||||||
| </TabsList> | ||||||||||||||||||||
| <ChatHistory isOpen={isChatHistoryOpen} onOpenChange={setIsChatHistoryOpen} /> | ||||||||||||||||||||
| <TabsContent className="h-full overflow-y-auto" value={EditorTabValue.CHAT}> | ||||||||||||||||||||
| <TabsContent | ||||||||||||||||||||
| forceMount | ||||||||||||||||||||
| className={cn( | ||||||||||||||||||||
| "h-full overflow-y-auto", | ||||||||||||||||||||
| editorEngine.state.rightPanelTab !== EditorTabValue.CHAT && 'hidden', | ||||||||||||||||||||
| )} value={EditorTabValue.CHAT}> | ||||||||||||||||||||
|
Comment on lines
+82
to
+87
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Potential rendering bug: Using forceMount with conditional visibility via 'hidden' class can cause issues with component lifecycle and accessibility. The TabsContent will always be mounted but hidden with CSS, which may cause the ChatTab component to initialize and run effects even when not visible, potentially leading to unnecessary API calls or state updates. Consider using conditional rendering instead of forceMount + hidden class.
Suggested change
Spotted by Diamond |
||||||||||||||||||||
| {currentConversation && ( | ||||||||||||||||||||
| <ChatTab | ||||||||||||||||||||
| conversationId={currentConversation.id} | ||||||||||||||||||||
|
|
||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.