[BUG] Accordion: onTabOpen/onTabClosed are switched (v1.5.2)

UI Components for React
Post Reply
rvw
Posts: 12
Joined: 01 Jun 2018, 10:48

18 Jun 2018, 16:09

Hello again.

I found another bug:

Code: Select all

 <Accordion onTabOpen={this.onTabOpen} onTabClose={this.onTabClose}>
 
onTabOpen is called when tab is closed and vice versa.

change in Accordion.js

Code: Select all

var callback = selected ? this.props.onTabOpen : this.props.onTabClose; (line 117)
to

Code: Select all

var callback = selected ? this.props.onTabClose : this.props.onTabOpen; (line 117)

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Jun 2018, 12:20

Resolved for 1.6.2 which is just released.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests