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
Tree selection types (pt. 2) #2473
Comments
@VsevolodGolovanov Can you confirm if you delete the following: // duplicate selectionKeys type, which misses some modes:
interface TreeSelectionKeysType {
[key: string]: TreeSelectionKeyType;
} You still have it being used here without a definition? type TreeSelectionKeys = string | TreeSelectionKeysType | null; Am I seeing that right or no? |
@melloware , oops. I got confused with all the types. TreeSelectionKeysType vs TreeSelectionKeys... Yes, keep TreeSelectionKeysType (maybe rename?), but TreeSelectionParams should use TreeSelectionKeys, not TreeSelectionKeysType. |
I'd call TreeSelectionKeysType smth like TreeMultipleSelectionKeys, though it could be confusing since it includes both selectionMode="multiple" and "checkbox". Still an improvement prolly.
Because |
OK check out my PR I agree with you and think I got it right. #2475 |
Continuing #2355.
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-tree-selection-types-pr-7-0-1-duvkt
Current behavior
Expected behavior
So it should be:
Minimal reproduction of the problem with instructions
Please tell us about your environment:
React version:
PrimeReact version:
7.0.1
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 ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
The text was updated successfully, but these errors were encountered: