Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:59
    afc163 unlabeled #19975
  • 11:59
    afc163 unlabeled #19975
  • 11:59
    afc163 reopened #19975
  • 11:59
    afc163 reopened #19975
  • 11:58

    afc163 on master

    Update stylelint-config-prettie… (compare)

  • 11:58

    afc163 on master

    Update stylelint-config-prettie… (compare)

  • 11:58

    afc163 on update

    (compare)

  • 11:58

    afc163 on update

    (compare)

  • 11:58
    codecov[bot] commented #20129
  • 11:58
    codecov[bot] commented #20129
  • 11:58
    codecov[bot] commented #20129
  • 11:58
    codecov[bot] commented #20129
  • 11:58
    pr-triage[bot] labeled #20129
  • 11:58
    pr-triage[bot] labeled #20129
  • 11:58
    pr-triage[bot] unlabeled #20129
  • 11:58
    pr-triage[bot] unlabeled #20129
  • 11:58
    afc163 closed #20129
  • 11:58
    afc163 closed #20129
  • 10:18
    mqliutie commented #10431
  • 10:18
    mqliutie commented #10431
Derry
@derrysukrie_twitter
hi guys, can someone help me how to disable hover color?
Szalai Laci
@szlaci3
@derrysukrie_twitter I assume you don’t know much css, then this is my answer: Basically i would do:
input {
No, sorry
input:hover {
text-decoration: none;
color: initial;
}
First is to get rid of underline,
Second is to keep the text color normal (not blue). Try also color: white, if your background is dark
Derry
@derrysukrie_twitter
fixed dude, i disabled the webkit box shadow
thanks for your answer @szlaci3
garret duffy
@insyzygy_twitter
Hi, I am looking for a way to flag comments (+1, add check/reject mark). https://ant.design/components/comment/ Basically, a way to add/edit metadata to comments in a conversation.
Danjuma Ashiwaju
@danju4rizzl
Screenshot_2.png

Hey, guy, 's I am new here to using Ant design.

I want to create an element that toggles the Switch component to run return a value from an array.

Here's my code

Szalai Laci
@szlaci3
@danju4rizzl And it’s not working? Here’s my guess, this might fix it:
onChange={this.onChange.bind(this, “on”)}
Because:
this.onChange is a function
this.onChange() is the return value after the execution of that function.
You need the function here. Don’t execute now, only at onChange. And bind helps you give it arguments when it executes in the future.
Derry
@derrysukrie_twitter
hi guys, is possible to handle the user input - (minus) in InputNumber? , i dont wan't user include -(minus) in their input
Szalai Laci
@szlaci3
min={O}
Szalai Laci
@szlaci3
@derrysukrie_twitter This is my more detailed answer. I get you don’t want to allow negative numbers in the input. Html has a way to limit the value: min and max. <input type =“number” min={0}>. You can use the same for InputNumber
igomac
@sunwenli
good
Danny
@dannySOLO
Hello there!
I have a <Modal> <Input autoFocus /> </Modal>
but the second time I open the popup, autoFocus attribute does not work.
Please someone has a solution?
Alfonso Austin
@agar23
Hello, anyone know how i can make the timeline scrollabel ?
Arne Lamo Pedersen
@arnelamo
Hi, guys. I'm totally new to Ant Design. Would anyone of you know how to enable auto submit in a select input field?
Alfonso Austin
@agar23
got it simple css height: 200px; width: 100%; overflow: hidden; overflow-y: scroll;
Szalai Laci
@szlaci3

@arnelamo I think you need to add to the select field an onchange that calls the same function as the form's onsubmit.

<Select onChange={this.submit}/>

kvnlee777
@kvnlee777
@szlaci3 Hi, how to customize the theme in ant design mobile? i followed the instruction in this link, but it is not working https://mobile.ant.design/docs/react/customize-theme
Szalai Laci
@szlaci3
Sorry, i don’t know about mobile. Probably you need media queries like:
@media screen and (max-width: 735px) {
...
}
Knut Olav Bøhmer
@knobo
Will antd 4.0 know how to handle objects in classNames?
Szalai Laci
@szlaci3
I don’t know. Do you mean objects like className={style.myDiv} ?
Cesar Serrano
@cserra10
Hello. Any docs about cssInJs instead of regular less?
isabelbagheri
@isabelbagheri
Sorry if I bother anyone with my super uninformed questions but I am insanely lost. I have been tasked with using ant.design to design for a novice developer to make things easier, but I know nothing about code and all of the sketch files are in Chinese! If anyone has any tips, that would be great! Right now I am just trying to take components from the ant.design.pro and ant.design.template files. Am I doing this wrong? I'll continue to research but so far in my work I have just worked on sketch files and prototyped and other people figured out the development part.
Szalai Laci
@szlaci3
@isabelbagheri I didn’t understand all your message. I work in Shanghai in the same conditions. Did you decide already what will be the file structure of the project? If you install @ant-design/pro-cli , that gives you a new project with a good file structure and some sample pages. It’s a good way to start as a beginner
kvnlee777
@kvnlee777
Hi, should i use ant design for both desktop browser and mobile browser? or should i separate them into 2 using antd and ant-mobile?
Peter Dräxler
@PeterDraex
Hey guys, I'm having trouble using the <Select> component search. I've posted my question on StackOverflow. Please help :-). https://stackoverflow.com/questions/59191799/ignoring-diacritics-when-searching-in-ant-design-select-component-with-optgroups
Szalai Laci
@szlaci3
@PeterDraex I see a minor mistake: chldren instead of children, at first glance
In the filterOption fn i would console.log the option (which is an OptGroup) to see if it has .options array or something similar. That’s all for now, this is how i would start
Peter Dräxler
@PeterDraex
@szlaci3 Thanks for the typo. The option (which is an OptGroup) has props.children which contains actual Options, but I'm not sure how to utilize that.
kvnlee777
@kvnlee777
@szlaci3 is it okay to use both antd and antd-mobile in one project?
Szalai Laci
@szlaci3
I don’t know antd-mobile
kvnlee777
@kvnlee777
@szlaci3 Hi, i mean is using both together a good idea?
@szlaci3 or should i separate into 2 projects source code?
Hatem Alimam
@hatemalimam
Hello, any migration guid for antd 4 ?
Nureddin Bedevi
@nbedevi
Hi all, how to customize ant theme if I using styled-components, and no Less in the project?