mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 05:53:42 +08:00
禁用了点击输入框就跳转
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user