Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:01
    mercteil commented #18155
  • 10:01
    mercteil commented #18155
  • 09:28
    BugHiding edited #22938
  • 09:28
    BugHiding edited #22938
  • 09:23
    BugHiding edited #22938
  • 09:23
    BugHiding edited #22938
  • 09:21
    BugHiding opened #22938
  • 09:21
    BugHiding opened #22938
  • 09:20
    x1mrdonut1x opened #22937
  • 09:20
    x1mrdonut1x opened #22937
  • 09:03
    devuxer commented #9954
  • 09:03
    devuxer commented #9954
  • 08:58
    devuxer commented #5122
  • 08:58
    devuxer commented #5122
  • 08:42
    ant-design-bot commented #22903
  • 08:42
    ant-design-bot commented #22903
  • 08:37
    codesandbox[bot] commented #22903
  • 08:37
    codesandbox[bot] commented #22903
  • 08:36
    ant-design-bot commented #22903
  • 08:36
    ant-design-bot commented #22903
Youssef Airoude
@airoude
@witcherc some example code please?
Youssef Airoude
@airoude
Hi all, It seems that setFieldsValue doesn't work for me. Here is my CSB. So I would like to add a product and add extra data (the uuid) to the same row
mit123suki
@mit123suki
@witcherc replace that part with name=...
mit123suki
@mit123suki
@airoude @witcherc bsn
Dang, how do I upoad a pic ?
Youssef Airoude
@airoude
Just drag and drop it in this window
mit123suki
@mit123suki
@airoude setFieldsValue works but something wrong with that nested names. If you give a simple name for formitem and set the item, you can observe it clearly in getfieldsvalue
Youssef Airoude
@airoude
@mit123suki but it's a nested form item therefor it needs the index
mit123suki
@mit123suki
Yes, what you said is right? But the problem is not with setfieldvalue as you thought in previous comment. Something is wrong with nested structure. @airoude
If you solve it, then let me know @airoude
mit123suki
@mit123suki
@airoude check this out,
this.formRef.current.setFieldsValue({
user: [
{
firstname: 'John',
},
],
});
That's how you set a value for nested structures
mit123suki
@mit123suki
@airoude use this and it works
 products : {
    [${idx}]: {
      quantity : item.quantity
    } 
  }
Youssef Airoude
@airoude
@mit123suki thank you so much!!! This finally works!! :):):)
So to completely understand it. The setFieldsValue works as a recursive merge?
Youssef Airoude
@airoude
I'm however required to register a form.item with the specified name (products.${idx}.uuid)
I've updated the CSB
Youssef Airoude
@airoude
So I made a HOC that wraps the form.item and makes it hidden
witcherc
@witcherc
@airoude @mit123suki https://imgur.com/a/V7VsRvb
witcherc
@witcherc
nm, i figured it out, i can't reference this.formRef.current in the componentDidMount. i have to move it into on onChange.
kdeeksha
@kdeeksha
Hi, How can i customise theme for react application?
witcherc
@witcherc
wernerbarnard
@wernerbarnard
Hi All - any idea how to get the sketch design files for Ant in English? (These seem to all be chinese: https://ant.design/docs/resources)
davidlohanda
@davidlohanda
hi, I have a problem in reseting pagination , is there any method to reset the pagination on triggered action ?
any body here?
kdeeksha
@kdeeksha
Hi, how can i set 2 colors in slider?
I have some default value say 30 I want to show a color untill 30 and slider has to start from 30
Mark Czotter
@cmark
Hi All, I have migrated our existing tree viewer component to the latest 4.1.0 version of Ant Design, but the tree performance dropped compared to the latest 3.x version. Scrolling a tree with around 250 items (no async fetch after the initial data load) sometimes causes flickering.
After a small debugging session I have found that something is happening inside the MotionTreeNode React element, especially when you move the mouse over an item while scrolling.
Anyone had similar experience with Ant Design 4.1.0 Tree so far?
3.x works without any issues.
Mark Czotter
@cmark
Yes, that part is not present in the profiler when I use the 3.x version of the tree. Something is going on with the newer version of the tree...
virtual and height did not help either
Mark Czotter
@cmark
Mark Czotter
@cmark
Also, when you use async loading and icons for a tree component, clicking on the tree node open triangle removes the icon of the node and puts it back when the data arrives
Mark Czotter
@cmark
Okay found the bug
this event handler is attached to rc-tree's MotionNode-s onMouseMove event
and it is being called on each mouse move event
which in turn triggers a setState with the same value and that triggers a re-render
Mark Czotter
@cmark
Farogh
@farogh_amir_twitter

Hi, can anyone please help with an issue
WHEN YOU CLOSE THE DATE PICKER IT SHOULD RESET SO THAT WHEN YOU REOPEN IT YOU SEE CURRENT VIEW/MONTH/WEEKS

i am using range picker

Daniela
@dannyze_twitter
i guys, i have a question... how i can donwload icons of ant-design for sketch or svg/eps but a some format to desing...
Stephen Song
@songstephen
Hi all, I'm building a React app that's primarily for mobile web, with desktop and native apps being secondary surfaces. I saw there's Ant Design and Ant Design Mobile, and I heard there's differences between how each system handles desktop vs mobile on web. We were planning on taking individual components to use in our own designs. Are there any issues between AD and ADM?
Williams Jharil
@jharil
Hi! What happened to version 4?
TrαΊ§n Trung HiαΊΏu
@hieuweb92_gitlab
What happened to v4.1.0?
mit123suki
@mit123suki
@hieuweb92_gitlab @jharil improvements, for example they separated icons into a separate package
Philip Metzger
@philmetzger

hey, anyone able to help me with a form regex pattern validator that doesnt seem to run?

I already created the question on stackoverflow: https://stackoverflow.com/questions/61040985/regex-pattern-match-validation-for-form-does-not-work-in-ant-design