Panel's expandIcon and collapseIcon Properties Accept Only Strings, Not Elements #2437
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.
https://codesandbox.io/s/thirsty-golick-s1ohk?file=/src/demo/PanelDemo.js
Current behavior
Panel component will allow a string like 'pi pi-chevron-up' but not an element like , as your other components allow.
Expected behavior
Panel component should accept an element like for its collapseIcon and expandIcon properties.
Please tell us about your environment:
React version:
17.0.1
PrimeReact version:
7.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
The text was updated successfully, but these errors were encountered: