mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
禁用了点击输入框就跳转
This commit is contained in:
parent
1d9a2b5315
commit
47c72bf010
@ -2134,8 +2134,8 @@ function _Chat() {
|
|||||||
onInput={(e) => onInput(e.currentTarget.value)}
|
onInput={(e) => onInput(e.currentTarget.value)}
|
||||||
value={userInput}
|
value={userInput}
|
||||||
onKeyDown={onInputKeyDown}
|
onKeyDown={onInputKeyDown}
|
||||||
onFocus={scrollToBottom}
|
// onFocus={scrollToBottom}
|
||||||
onClick={scrollToBottom}
|
// onClick={scrollToBottom}
|
||||||
onPaste={handlePaste}
|
onPaste={handlePaste}
|
||||||
rows={inputRows}
|
rows={inputRows}
|
||||||
autoFocus={autoFocus}
|
autoFocus={autoFocus}
|
||||||
|
@ -324,7 +324,7 @@ export const useChatStore = createPersistStore(
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
currentSession() {
|
currentSession(): ChatSession {
|
||||||
let index = get().currentSessionIndex;
|
let index = get().currentSessionIndex;
|
||||||
const sessions = get().sessions;
|
const sessions = get().sessions;
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@ export function createPersistStore<T extends object, M>(
|
|||||||
) => M,
|
) => M,
|
||||||
persistOptions: SecondParam<typeof persist<T & M & MakeUpdater<T>>>,
|
persistOptions: SecondParam<typeof persist<T & M & MakeUpdater<T>>>,
|
||||||
) {
|
) {
|
||||||
// TODO: merge 报错,很离谱,后续再排查
|
|
||||||
persistOptions.storage = createJSONStorage(() => indexedDBStorage);
|
persistOptions.storage = createJSONStorage(() => indexedDBStorage);
|
||||||
const oldOonRehydrateStorage = persistOptions?.onRehydrateStorage;
|
const oldOonRehydrateStorage = persistOptions?.onRehydrateStorage;
|
||||||
persistOptions.onRehydrateStorage = (state) => {
|
persistOptions.onRehydrateStorage = (state) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user