pro-components
pro-components copied to clipboard
ProFormSelect doesn't have a loading state
Steps to reproduce
<ProFormSelect disabled={!merchandiseSector} loading={subMerchandiseSectors.isLoading} options={apidata.data?.map((item) => ({ value: item.id, label: item.description, }))} />
What is expected?
to have a loading state
What is actually happening?
not having a loading state
| Environment | Info |
|---|---|
| antd | 5.17.4 |
| React | 18.2.0 |
| System | MacOs |
| Browser | Chrome, Arc |
PS: I figure out that it's missing a lot of things from the normal select, such as labelInValue and others, what's the purpose of ProFormSelect over a normal Select then? how can I use a select in a StepsForm.StepForm
<ProFormSelect
label='Application Type'
name='app_net_type'
fieldProps={{
loading: true,
labelInValue: true,
}}
/>