Merge pull request #556 from getmaxun/discard-fix
fix: capture text highlighting on discard
This commit is contained in:
@@ -423,6 +423,8 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
resetListState();
|
resetListState();
|
||||||
|
stopPaginationMode();
|
||||||
|
stopLimitMode();
|
||||||
setShowPaginationOptions(false);
|
setShowPaginationOptions(false);
|
||||||
setShowLimitOptions(false);
|
setShowLimitOptions(false);
|
||||||
setCaptureStage('initial');
|
setCaptureStage('initial');
|
||||||
|
|||||||
@@ -68,7 +68,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
socket?.emit('setPaginationMode', { pagination: true });
|
socket?.emit('setPaginationMode', { pagination: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
const stopPaginationMode = () => setPaginationMode(false);
|
const stopPaginationMode = () => {
|
||||||
|
setPaginationMode(false);
|
||||||
|
socket?.emit('setPaginationMode', { pagination: false });
|
||||||
|
};
|
||||||
|
|
||||||
const startLimitMode = () => {
|
const startLimitMode = () => {
|
||||||
setLimitMode(true);
|
setLimitMode(true);
|
||||||
@@ -88,6 +91,7 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
|
|
||||||
const stopGetList = () => {
|
const stopGetList = () => {
|
||||||
setGetList(false);
|
setGetList(false);
|
||||||
|
socket?.emit('setGetList', { getList: false });
|
||||||
setPaginationType('');
|
setPaginationType('');
|
||||||
setLimitType('');
|
setLimitType('');
|
||||||
setCustomLimit('');
|
setCustomLimit('');
|
||||||
|
|||||||
Reference in New Issue
Block a user