Using redux-form I'm losing focus after typing the first character

后端 未结 7 630
甜味超标
甜味超标 2020-12-24 12:40

I\'m using redux-form and on blur validation. After I type the first character into an input element, it loses focus and I have to click in it again to continue

相关标签:
7条回答
  • 2020-12-24 13:24

    I had the same problem. I solved it when I added my react redux form to the store in the createForms():

    export const ConfigureStore = () => {
      const store = createStore(
        combineReducers({
    
          tasks: Tasks,
          task: Task,
          image: Image,
          admin: Admin,
          pageId: PageID,
          fieldValues: FieldValues,
          formValues: FormValues,
    
          ...createForms({
            createTask: initialTask,
            editTask: initialEditTask
          })
        }),
        applyMiddleware(thunk, logger)
      );
    
      return store;
    }

    0 讨论(0)
提交回复
热议问题