Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] Warning: Expected onBlur listener to be a function, instead got false. #8600

Open
leshalv opened this issue Jul 24, 2024 · 5 comments

Comments

@leshalv
Copy link
Contributor

leshalv commented Jul 24, 2024

console.js:288 Warning: Expected `onBlur` listener to be a function, instead got `false`.

If you used to conditionally omit it with onBlur={condition && value}, pass onBlur={condition ? value : undefined} instead.
    at div
    at BaseProFormField (http://localhost:8000/umi.js:74028:28)
    at WithValueFomFiledProps (http://localhost:8000/umi.js:74325:40)
    at StatusProvider (http://localhost:8000/umi.js:156223:11)
    at div
    at div
    at div
    at http://localhost:8000/umi.js:157933:48
    at FormItemInput (http://localhost:8000/umi.js:156555:13)
    at div
    at http://localhost:8000/umi.js:158141:24
    at div
    at ItemHolder (http://localhost:8000/umi.js:156057:13)
    at InternalFormItem (http://localhost:8000/umi.js:156342:13)
    at WarpFormItem (http://localhost:8000/umi.js:74420:25)
    at ProFormItem (http://localhost:8000/umi.js:74511:244)
    at ColWrapper (http://localhost:8000/umi.js:77535:44)
    at FieldWithContext (http://localhost:8000/umi.js:72573:48)
    at DependencyWrapper (http://localhost:8000/umi.js:72782:34)
    at ProFormText (http://localhost:8000/umi.js:76868:27)
    at StatusProvider (http://localhost:8000/umi.js:156223:11)
    at Field (http://localhost:8000/umi.js:345222:37)
    at WrapperField (http://localhost:8000/umi.js:345659:22)
    at InternalFormItem (http://localhost:8000/umi.js:156342:13)
    at ProFormDependency (http://localhost:8000/umi.js:73835:25)
    at form
    at Form (http://localhost:8000/umi.js:345784:21)
    at FormProvider (http://localhost:8000/umi.js:345919:33)
    at FormProvider
    at DisabledContextProvider (http://localhost:8000/umi.js:149421:11)
    at InternalForm (http://localhost:8000/umi.js:155894:36)
    at div
    at div
    at Spin (http://localhost:8000/umi.js:177136:24)
    at BaseFieldForm (http://localhost:8000/src_pages_account_User_index_tsx-async.js:1179:13)
    at div
    at div
    at div
    at div
    at Spin (http://localhost:8000/umi.js:177136:24)
    at div
    at DrawerPanel (http://localhost:8000/umi.js:153108:13)
    at div
    at DrawerPanel (http://localhost:8000/umi.js:344508:27)
    at div
    at DomWrapper (http://localhost:8000/umi.js:353704:37)
    at http://localhost:8000/umi.js:353433:36
    at div
    at DrawerPopup (http://localhost:8000/umi.js:344560:27)
    at http://localhost:8000/umi.js:122786:22
    at Drawer (http://localhost:8000/umi.js:344409:29)
    at NoFormStyle (http://localhost:8000/umi.js:156834:11)
    at NoCompactStyle (http://localhost:8000/umi.js:176600:11)
    at ContextIsolator (http://localhost:8000/umi.js:137938:13)
    at Drawer (http://localhost:8000/umi.js:153216:13)
    at CreateUser (http://localhost:8000/src_pages_account_User_index_tsx-async.js:1884:13)
    at Component$$ (http://localhost:8000/src_pages_account_User_index_tsx-async.js:6620:13)
    at div
    at http://localhost:8000/umi.js:157933:48
    at div
    at http://localhost:8000/umi.js:158141:24
    at Component$$ (http://localhost:8000/src_pages_account_User_index_tsx-async.js:4574:65)
    at div
    at http://localhost:8000/umi.js:373690:27
    at DomWrapper (http://localhost:8000/umi.js:353704:37)
    at http://localhost:8000/umi.js:353433:36
    at div
    at div
    at TabPanelList (http://localhost:8000/umi.js:373736:20)
    at div
    at http://localhost:8000/umi.js:373834:20
    at Tabs (http://localhost:8000/umi.js:184913:13)
    at div
    at div
    at DomWrapper (http://localhost:8000/umi.js:363919:37)
    at SingleObserver (http://localhost:8000/umi.js:363956:26)
    at ResizeObserver (http://localhost:8000/umi.js:364072:26)
    at PageHeader (http://localhost:8000/umi.js:84488:34)
    at div
    at PageContainerBase (http://localhost:8000/umi.js:84097:26)
    at ProConfigProvider (http://localhost:8000/umi.js:90049:26)
    at PageContainer
    at User (http://localhost:8000/src_pages_account_User_index_tsx-async.js:49:35)
    at Access (http://localhost:8000/umi.js:435808:22)
    at Access (http://localhost:8000/common-async.js:47:43)
    at Component$$
    at Suspense
    at RemoteComponent (http://localhost:8000/umi.js:127860:27)
    at Outlet (http://localhost:8000/umi.js:409079:28)
    at EmptyRoute (http://localhost:8000/src__umi_core_EmptyRoute_tsx-async.js:34:47)
    at Suspense
    at RemoteComponent (http://localhost:8000/umi.js:127860:27)
    at Outlet (http://localhost:8000/umi.js:409079:28)
    at Exception (http://localhost:8000/src__umi_plugin-layout_Layout_tsx-async.js:35:12)
    at main
    at http://localhost:8000/umi.js:162165:24
    at Content
    at ErrorBoundary (http://localhost:8000/umi.js:100018:37)
    at WrapContent (http://localhost:8000/umi.js:80945:45)
    at div
    at div
    at http://localhost:8000/umi.js:162181:34
    at Layout
    at div
    at BaseProLayout (http://localhost:8000/umi.js:80583:15)
    at MotionWrapper (http://localhost:8000/umi.js:149447:13)
    at ProviderChildren (http://localhost:8000/umi.js:150000:13)
    at ConfigProvider (http://localhost:8000/umi.js:150194:28)
    at SWRConfig (http://localhost:8000/umi.js:422153:13)
    at ConfigProviderContainer (http://localhost:8000/umi.js:89908:26)
    at LocaleProvider (http://localhost:8000/umi.js:163372:13)
    at MotionWrapper (http://localhost:8000/umi.js:149447:13)
    at ProviderChildren (http://localhost:8000/umi.js:150000:13)
    at ConfigProvider (http://localhost:8000/umi.js:150194:28)
    at ProConfigProvider (http://localhost:8000/umi.js:90049:26)
    at MotionWrapper (http://localhost:8000/umi.js:149447:13)
    at ProviderChildren (http://localhost:8000/umi.js:150000:13)
    at ConfigProvider (http://localhost:8000/umi.js:150194:28)
    at ProLayout (http://localhost:8000/umi.js:80899:30)
    at Component$$ (http://localhost:8000/src__umi_plugin-layout_Layout_tsx-async.js:144:43)
    at Suspense
    at RemoteComponent (http://localhost:8000/umi.js:127860:27)
    at Routes (http://localhost:8000/umi.js:127160:50)
    at Router (http://localhost:8000/umi.js:409097:21)
    at BrowserRoutes (http://localhost:8000/umi.js:127117:25)
    at r (http://localhost:8000/umi.js:405641:23)
    at div
    at App (http://localhost:8000/umi.js:141191:24)
    at LocaleProvider (http://localhost:8000/umi.js:163372:13)
    at MotionWrapper (http://localhost:8000/umi.js:149447:13)
    at ProviderChildren (http://localhost:8000/umi.js:150000:13)
    at ConfigProvider (http://localhost:8000/umi.js:150194:28)
    at _LocaleContainer (http://localhost:8000/umi.js:437237:48)
    at Provider (http://localhost:8000/umi.js:435918:56)
    at InitialStateProvider (http://localhost:8000/umi.js:436435:38)
    at Provider (http://localhost:8000/umi.js:437783:31)
    at ProviderWrapper (http://localhost:8000/umi.js:437955:35)
    at MotionWrapper (http://localhost:8000/umi.js:149447:13)
    at ProviderChildren (http://localhost:8000/umi.js:150000:13)
    at ConfigProvider (http://localhost:8000/umi.js:150194:28)
    at StyleProvider (http://localhost:8000/umi.js:2299:26)
    at AntdProvider (http://localhost:8000/umi.js:436175:25)
    at Browser (http://localhost:8000/umi.js:127221:45)
@deng-yc
Copy link

deng-yc commented Aug 8, 2024

+1

4 similar comments
@Linya-IronMan
Copy link

+1

@kikuBruce
Copy link

+1

@hhly2210
Copy link

+1

@proximoprimo
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants