Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disable click extra collapse antd

<Collapse onChange={callback}>
    <Panel
      header="This is panel header with arrow icon"
      key="1"
      extra={
        <div onClick={e => e.stopPropagation()}>    <-----
          <Button size="small" onClick={buttonClick}>
            Click me
          </Button>
        </div>
      }
    >
      <p>{text}</p>
    </Panel>
  </Collapse>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #disable #click #extra #collapse #antd
ADD COMMENT
Topic
Name
5+9 =