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