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

The hint for the selector with the checkbox type is not shown #1015

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ export const Control = ({
hasValidationError: Boolean(currentValidationError),
style,
renderOverlay,
hint: controlData.source.showHint ? controlData.source.hint : undefined,
...getTypeProps(control, controlData, currentValidationError),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function withWrapForControls(WrappedComponent) {
</span>
)}
<WrappedComponent {...props} />
{hint && !showLabel && <MarkdownHelpPopover markdown={hint} />}
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions src/ui/units/dash/store/reducers/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ export function getSelectorGroupDialogFromData(data) {
placementMode: item.placementMode || CONTROLS_PLACEMENT_MODE.AUTO,
width: item.width || '',
namespace: item.namespace,
showHint: item.source.showHint,
hint: item.source.hint,
}))
.sort((a, b) => a.index - b.index);

Expand Down
Loading