Skip to content

Commit 2f4db4e

Browse files
authored
Merge pull request #556 from getmaxun/discard-fix
fix: capture text highlighting on discard
2 parents 80be828 + fa34500 commit 2f4db4e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/recorder/RightSidePanel.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
423423
}
424424
});
425425
resetListState();
426+
stopPaginationMode();
427+
stopLimitMode();
426428
setShowPaginationOptions(false);
427429
setShowLimitOptions(false);
428430
setCaptureStage('initial');

src/context/browserActions.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
6868
socket?.emit('setPaginationMode', { pagination: true });
6969
};
7070

71-
const stopPaginationMode = () => setPaginationMode(false);
71+
const stopPaginationMode = () => {
72+
setPaginationMode(false);
73+
socket?.emit('setPaginationMode', { pagination: false });
74+
};
7275

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

8992
const stopGetList = () => {
9093
setGetList(false);
94+
socket?.emit('setGetList', { getList: false });
9195
setPaginationType('');
9296
setLimitType('');
9397
setCustomLimit('');

0 commit comments

Comments
 (0)