Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 11 14:05
    dependabot[bot] labeled #292
  • May 11 14:05
    dependabot[bot] opened #292
  • May 11 14:05

    dependabot[bot] on npm_and_yarn

    Bump hosted-git-info from 2.8.8… (compare)

  • May 09 14:25
    dependabot[bot] labeled #291
  • May 09 14:25
    dependabot[bot] opened #291
  • May 09 14:25

    dependabot[bot] on npm_and_yarn

    Bump url-parse from 1.4.7 to 1.… (compare)

  • May 08 02:29
    imcuttle commented #586
  • May 07 12:14
    imcuttle commented #586
  • May 04 17:35
    Ishaan28malik commented #259
  • Apr 30 06:25
    Amber-zty commented #470
  • Apr 30 02:45
    miigangls opened #586
  • Apr 29 19:45
    DanielRosenwasser commented #479
  • Apr 29 15:28
    zombieJ commented #259
  • Apr 28 14:34
    Ishaan28malik edited #259
  • Apr 28 14:21
    Ishaan28malik commented #259
  • Apr 28 01:16
    vagusX commented #259
  • Apr 26 13:49
    Bazze commented #573
  • Apr 26 07:28
    mohitrajane commented #573
  • Apr 26 04:01
    wendellhu95 assigned #259
  • Apr 26 04:01
    wendellhu95 commented #259
Shakxzod Namazbaev
@shakxzod.namazbaev.9700_gitlab
Hi, How to use Modal re-render?
GaryRoussak
@GaryRoussak
Hi. I'm using antd in an AMD/RequireJS environment. My predecessor has created our project so that it simply includes the whole of the antd distribution, thus swelling our built module by 10Mb of antd code. I use a fairly small subset of components, and wondered if there was a way (some way - doesn't have to be sophisticated) of ONLY including those parts of the antd codebase that I really need ?
Sagnick Banerjee
@Sagnick
npm test fails, Throws error as ReferenceError: globalThis is not defined
Anthony Webster
@ChambreNoire
Hiya, quick question: when using the Select component in tag mode how can one stop the component from allowing the user to add new values ? I need the select to be able to search based on user input but not to accept any values which aren't already Options...
nevermind. I need to use multiple mode
Daniel Barrera
@dany952
Hi
Kumaran
@mk48
Hi, In forms, how to move focus programatically?
Vincent Cheung
@fongfai
react ref
Steven Pease
@svpease
has anyone here successfully submitted a PR for the codebase?
Glignel
@Glignel
Hi all, I've been searching for a while now on how to clear the search field after a transfer is done within the transfer component, but I haven't found a proper solution. Anyone who can help?
2 replies
Vlad Florin Sodringa
@vladoski
Hello guys, does anyone of you have a nice header example done in antd?
Chematronix
@Chematronix
Guys, there's only questions in this chat. Why bother asking if no one answers? (oops, another question! :)
Muhammad Arslan Ali
@Arslanali1067
Hi there!!!
anyone online?
Antonijo Đođ
@antonijoDod
Just hi :)
Vlad Florin Sodringa
@vladoski
Hey, does anyone know how can I add multiple badges to an element?
raisen
@raisen
Hi. Simple question: is there a way to set the class name of a antd table?
Abraham Olatubosun
@abraham531973_twitter
Hey Hi, I am new to Ant-design and React I guess I will be needing all of your help to bring me up to speed, I am currently developing a project, that should have a horizontal bar menu with some dropdown sub-menu, I have seen some cool once from Ant-Design how do I integrate it with my current react project. Thanks
elfgod
@elfgod
Hello i am new using AntDesign i have some questions ? do i have to use a lot of CSS bare code to style Ant? or i need to better understand the Grid? and also i dont see many AntTemplates so i can see how the code is being structure thanks a lot AntCommunity
Artur Marchi
@marchiartur
can i change width and height of upload component?
Egor Shumanskiy
@EgorShum
Hello everybody! Is there any way to customize Form.Item feedback icons ( https://ant.design/components/form/#components-form-demo-validate-static )? Has anybody swapped these icons ever?
Jude Lee
@judescripts
Hi I have a Drawer with the width being set still showing the initial width when it is opened... can't seem to get this to work.... any ideas? I'm using React and "@ant-design/compatible": "^1.0.2",
"@ant-design/icons": "^4.1.0",
Heelllllp :) Thanks!
I set the width to 720 or any bigger value but still opens at it's intial width which is 256 I believe
Aeronhide
@Aeronhide
Hey guys, somebody faced issue for antd components that it's don't show suggestions ?
image.png
I'm about this things
image.png
2 replies
herbthecoder
@herbthecoder
Hello. When I set the value property of a <Checkbox.Group> the checkbox corresponding to the value does not get set if I am using an antd Form. If I use <Checkbox.Group> without a <Form> setting the value property works. Has anyone encountered this problem?
Pranay Prateek
@pranay01_twitter
I want to show a form if a user clicks a particular option in select. The form should appear at the same place where the option list appears. How can I do this?
Linda Saleh
@LindaMoussa_gitlab
Hi Guys
I need to change the font size of ant design in run time is that possible ?
Skitsanos
@skitsanos
Hi! I was playing here a bit with adding avatars to one of my apps, so wrapped a demo here https://avatar-selector.netlify.app
You can grab the source code on https://github.com/skitsanos/avatar-selector
There are 40 avatars linked by default
herbthecoder
@herbthecoder
@skitsanos Nice project. Is it easy to create custom avatars from your source? Other feedback would be to add option to change skin tone and facial feature to support various ethnicities.
Skitsanos
@skitsanos
@herbthecoder this one is rather basic one :) i have another one with support for gravatars and other avatar services, one of them comes with really detailed config options. In reality even this one is rather simple to 'tweak' as well. Maybe later will open source that bits as well...
@LindaMoussa_gitlab everything is possible
Feisser
@Feisser
image.png
Why cant the Form read the Values form my Object? I tried also to use InitialValues in the Form but the Input fields are empty
Shakxzod Namazbaev
@shakxzod.namazbaev.9700_gitlab
Did anyone at Ant Design work with Tree drag and drop?
Neanda
@neanda
hi there, I'm sure this has been asked before, but is there an english version of the Sketch design files? Thank you
Haozhe
@neneji
hi guys what's happening? antd is deleted from github
Bryce Easley
@OUeasley
Yeah I'm seeing the same thing.
:(
Nautikk
@nautikk
Same
ddenis1994
@ddenis1994
hi there can someone help me, I need to remove the arrow in the submenu and instead put a component that purposes as options for this submenu
RoXoM
@xyy94813

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 () => {
      fireEvent.mouseDown(getByRole('combobox'));
    });

    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 (
    <Select
      showSearch
      defaultActiveFirstOption
      filterOption={handleSelectFilter}
      {...props}
      ref={ref}
    >
      {OPTIONS.map(({ value, text }) => (
        <Select.Option key={value}>{text}</Select.Option>
      ))}
    </Select>
  );
});

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
@ChambreNoire
Hi there. It's normal that after a form.resetFields(['parent']), the 'child' fields (['parent', 'somechild'] etc) are not refreshed ?
Abdullah700
@Abdullah700
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
@szlaci3

I made a Youtube playlist about AntD English tutorials.

You can watch the videos.
You can add videos, this is how:
Use this link
https://www.youtube.com/playlist?list=PL0JRSe9GT_lfNG_Ju6Wz1Xb5-gYUn3bZt&jct=XGlUR-NvEDkDdNXiJxXBBBG-YhkDJA
Click CONTINUE
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.