Clear selection TreeSelect
-
- Posts: 3
- Joined: 22 Mar 2021, 22:03
Hello, what would be a way out to clear the selection of a TreeSelect with selectionMode "single"?
Just set the selection back to null.
Code: Select all
const [selectedKey, setSelectedKey] = useState(null);
<Tree value={nodes} selectionMode="single" selectionKeys={selectedKey}>
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests