Skip to content

Commit

Permalink
The hint for the selector with the checkbox type is not shown (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmadom authored May 22, 2024
1 parent 80a9357 commit a162935
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
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

0 comments on commit a162935

Please sign in to comment.