pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

ProFormSelect doesn't have a loading state

Open Ladvace opened this issue 1 year ago • 1 comments

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

Ladvace avatar Jun 02 '24 10:06 Ladvace

<ProFormSelect
                label='Application Type'
                name='app_net_type'
                fieldProps={{
                  loading: true,
                  labelInValue: true,
                }}
              />

fnoopv avatar Jun 03 '24 06:06 fnoopv