Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jun 22 04:29
    kenazs opened #489
  • Jun 22 03:48
    lchrennew commented #487
  • Jun 21 10:31
    luosheng opened #488
  • Jun 21 08:10
    MrDo1890 commented #307
  • Jun 21 06:31
    careyke commented #307
  • Jun 21 03:41
    codeater7 commented #431
  • Jun 21 03:03
    MrDo1890 commented #307
  • Jun 21 02:58
    MrDo1890 commented #307
  • Jun 18 23:30
    MiryksV commented #39
  • Jun 18 10:44
    sanketshevkar commented #71
  • Jun 18 05:29
    afc163 commented #483
  • Jun 18 05:29
    afc163 commented #482
  • Jun 18 05:28
    afc163 closed #483
  • Jun 18 05:28
    afc163 commented #483
  • Jun 18 05:27
    afc163 commented #487
  • Jun 18 03:56
    afc163 commented #71
  • Jun 16 06:40
    alienzhangyw commented #486
  • Jun 16 06:38
    alienzhangyw commented #486
  • Jun 16 03:04
    careyke commented #486
  • Jun 15 18:10
    lchrennew opened #487

Hi everyone!

I am try to write a unit test of biz components which is base on antd select.
I use @testing-library to write unit test.

This is my unit test code:

it('filter by input', async () => {
    const { getByRole, rerender, container } = render(<MySelect />);

    await act(async () => {

    expect(screen.queryAllByRole('option')).toHaveLength(58); // received => 2

This is my biz component

const OPTOINS = [{ value: 'a', text: 'a' }, {value: 'b', text: ‘b'} ];  // There are 58 options.
const MySelect = forwardRef((props, ref) => {
  const handleSelectFilter = useCallback(
    (input, option) => option.children.includes(input),
  return (
      {OPTIONS.map(({ value, text }) => (
        <Select.Option key={value}>{text}</Select.Option>

What should i do to simulate open select option list?
In antd v4, select impl by virtual list.
So, what is the correct excepted value?

Anthony Webster
Hi there. It's normal that after a form.resetFields(['parent']), the 'child' fields (['parent', 'somechild'] etc) are not refreshed ?
hi Im trying to use antd-theme-webpack-plugin with craco and its not working im getting this on the console "Less has finished and no sheets were loaded"
Szalai Laci

I made a Youtube playlist about AntD English tutorials.

You can watch the videos.
You can add videos, this is how:
Use this link
Click the Haburger_Plus sign to Save playlist (You become an author of the playlist)
Each time you want to add a video: 3 dots, Save to playlist, choose AntD .

Let me know if you like this idea and how difficult it was to follow the steps.

For now i just added two videos from youtubers, the content should grow in the future, as we all add good videos (!) to it.
Playlist = Library, same thing.
Follow the steps on PC.
Szalai Laci
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

I'm thinking which state management library to use in a new UMI project: DVA or Redux.
You might have some thoughts on this, or just find this info useful.

What's the connection with antd?
Antd uses UMI and DVA.

PROS (DVA is good because:)
There is a Chinese community behind it (I live in China), they have tutorials and groups for questions.
UMI is made for DVA, so future compatibility is granted.
Small size. Empty UMI project with DVA added is 0.5 MB.

CONS (DVA is bad because:)
Poorly documented.

There is a much bigger English language community behind it.
Very complex, has Hooks and other features to cover special needs.

Large size. Empty UMI project with Redux added is 2.6 MB.

This is not final, but i might choose DVA because of the size. It won't be easy though, cause I don't understand the Chinese documentation and machine translation gives a poor result.

Ricky Chan
For anyone interested in using Ant Design Pro + Parse Server as a backend with user authentication hooked up, I have a seed project here -> https://github.com/RocketCodeYYC/RocketCode-Platform
I'll need to spend some more time on documentation, but good enough to get you started, thanks
Szalai Laci
@yhrchan_twitter Thanks. Sharing is caring. :)
Aaron Grau
Hi does anyone have any example repos they could point me to that integrate graphql into ant design pro?
Artur Marchi
hey guys
how can I remove "am/pm" from the component?
it's on the vue
Szalai Laci

@marchiartur is coding during Easter... :P

<TimePicker format="HH:mm a"/>
"a" refers to AM/PM. Comes from moment.js
But I think you have figured it out already...

<TimePicker format="HH:mm"/>
No "a", it should remove AM/PM.
Szalai Laci
<TimePicker format="hh:mm"/>
HH 17 = hh 5 PM

İ used filtered antd
but not working
title: t('columns.status'),
dataIndex: 'status',
key: 'status',
editable: true,
filters: [
text: 'ONLINE',
value: "ONLINE",
text: 'OFFLINE',
value: "OFFLINE",

filterMultiple: false,
onFilter: (value, record) => record.status.indexOf(value) === 0,

this is my code

Artur Marchi
@szlaci3 thank you
hey guys
it's always true
Artur Marchi
can't I set a color for a badge and put a conditional for its visibility?
Szalai Laci
The collapsed-button is shown on the sidebar and I want it on the header. I can't find any config that refers to this. Do you know if there is a way to move it (and customize it)? Otherwise I will hide it and make my own button. The hardest will be to get its state.
This is ant-design-pro 5

Hi! I have a question. On Form Items, how can I run automatically the validation that is under the property "rules" when it loads the initial value?

I see that only works when you change the value of the input


I am new to Ant-design though I have been doing some reading about it but still thinking how best to implement it with my REACT application. I am frustrated with MATERIAL-UI, just to implement Form Layout using MATERIAL-UI GRID and CONTAINER is taking me forever, my project is for 4 weeks and I have been trying this framework for 2 weeks now which is 50% of my productive working time wasted.
Please I will need anyone to bring me to SPEED, on how to implement ANT-DESIGN in my React Project so that I can meet up with the timeline.

Thank you in anticipation

Hi All
Is there any to reset antd slider on button click?
Fernando Abrão
Hi @abrahamolatubosun1973 , It depends on how you use it. I speeded up my producitivity using ANT-DESIGN with ng-zorro, Antd with Angular. Even knowing that this is heavy framework, it worth.
Maryam Abdi
I used ant-design version-3 in my project
I started to migrate v4
but in this time (in v3) I need feature in date-picker when change month or year by arrows of date-picker call my function
I know in v4 ant has onPanelChange but could you give me solution in v3?
I asked in ant-design github but they didn't help me