-
Notifications
You must be signed in to change notification settings - Fork 86
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
Enable Parent Item Selection In Dropdown #4705
Conversation
@@ -80,6 +80,7 @@ export class EditorUsingManualSourceOrVocabulary extends React.PureComponent<IPr | |||
kind="synchronous" | |||
getOptions={() => options} | |||
values={selected} | |||
canSelectBranchWithChildren={config.canSelectBranchWithChildren} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep capability to allow/disallow based on a tree node
canSelectBranchWithChildren?(branch: ITreeNode<unknown>): boolean;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not supported in uif component, we talked about it and decided to leave as is
scripts/core/superdesk-api.d.ts
Outdated
optionTemplate?: React.ComponentType<{item: unknown}>; | ||
valueTemplate?: React.ComponentType<{item: unknown}>; | ||
multiple: boolean; | ||
} | ||
|
||
/** | ||
* @deprecated Use IDropdownConfigManualSource/IDropdownConfigVocabulary/IDropdownConfigRemoteSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it be removed instead of deprecating?
scripts/core/superdesk-api.d.ts
Outdated
optionTemplate?: React.ComponentType<{item: unknown}>; | ||
valueTemplate?: React.ComponentType<{item: unknown}>; | ||
multiple: boolean; | ||
} | ||
|
||
/** | ||
* @deprecated Use IDropdownConfigManualSource/IDropdownConfigVocabulary/IDropdownConfigRemoteSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we need to deprecate it. Maybe it's enough to warn not to use this one if use case can be satisfied using other dropdown sources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need, but I thought it's the better direction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
STT-63