Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeSelect templateHeader doesn't work #2641

Closed
GregorGabric opened this issue Feb 15, 2022 · 5 comments · Fixed by #2642
Closed

TreeSelect templateHeader doesn't work #2641

GregorGabric opened this issue Feb 15, 2022 · 5 comments · Fixed by #2642
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@GregorGabric
Copy link

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")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

**Here is the codesandbox
https://codesandbox.io/s/stupefied-bush-ulnpy?file=/src/demo/TreeSelectDemo.tsx

Current behavior
cannot make a custom Header component, either it's broken or im doing someting wrong.

Expected behavior
The prop templateHeader should work

Minimal reproduction of the problem with instructions

https://codesandbox.io/s/stupefied-bush-ulnpy?file=/src/demo/TreeSelectDemo.tsx

Please tell us about your environment:

MacOs

  • React version:
"react": "17.0.2",
  • PrimeReact version:
"primereact": "7.2.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 ]

Chrome 98

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TS
@GregorGabric
Copy link
Author

Clearing with pressing on the x icon also isn't working. It only closes the panel

@melloware
Copy link
Member

Looks like a bug. PR submitted: #2642

@GregorGabric
Copy link
Author

Thank you

@GregorGabric
Copy link
Author

When can the next release be expected if you don't mind

@melloware
Copy link
Member

i don't work for PrimeTek so i have no idea hopefully they agree with my PR and accept it.

@yigitfindikli yigitfindikli added the Type: Bug Issue contains a defect related to a specific component. label Feb 16, 2022
@yigitfindikli yigitfindikli added this to the 7.2.1 milestone Feb 16, 2022
yigitfindikli added a commit that referenced this issue Feb 16, 2022
Fix #2641: TreeSelect header should be panelHeaderTemplate
@yigitfindikli yigitfindikli self-assigned this Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants