Skip to content

fix: capture text highlighting on discard #556

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

Merged
merged 3 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/recorder/RightSidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
}
});
resetListState();
stopPaginationMode();
stopLimitMode();
setShowPaginationOptions(false);
setShowLimitOptions(false);
setCaptureStage('initial');
Expand Down
6 changes: 5 additions & 1 deletion src/context/browserActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
socket?.emit('setPaginationMode', { pagination: true });
};

const stopPaginationMode = () => setPaginationMode(false);
const stopPaginationMode = () => {
setPaginationMode(false);
socket?.emit('setPaginationMode', { pagination: false });
};

const startLimitMode = () => {
setLimitMode(true);
Expand All @@ -88,6 +91,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {

const stopGetList = () => {
setGetList(false);
socket?.emit('setGetList', { getList: false });
setPaginationType('');
setLimitType('');
setCustomLimit('');
Expand Down