Skip to content

Commit

Permalink
Added tooltip to operators
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavkumar7031 authored and ukrbublik committed May 23, 2024
1 parent f8db3b8 commit 0d5e94a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/antd/modules/widgets/core/FieldSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const FieldSelect = (props) => {
const dropdownPlacement = config.settings.dropdownPlacement;
const dropdownAlign = dropdownPlacement ? BUILT_IN_PLACEMENTS[dropdownPlacement] : undefined;
const width = isFieldSelected && !showSearch || !selectWidth ? null : selectWidth + SELECT_WIDTH_OFFSET_RIGHT;
let tooltipText = selectedAltLabel || selectedFullLabel;
let tooltipText = selectedAltLabel || selectedFullLabel || selectedLabel;
if (tooltipText == selectedLabel)
tooltipText = null;
tooltipText = selectedKey;

const onChange = (key) => {
setField(key);
Expand Down
4 changes: 2 additions & 2 deletions packages/mui/modules/widgets/core/MuiFieldSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export default ({
}, [readonly, placeholder, items]);

const hasValue = selectedKey != null;
let tooltipText = selectedAltLabel || selectedFullLabel;
let tooltipText = selectedAltLabel || selectedFullLabel || selectedLabel;
if (tooltipText == selectedLabel)
tooltipText = null;
tooltipText = selectedKey;
let res = (
<Select
error={!!errorText}
Expand Down

0 comments on commit 0d5e94a

Please sign in to comment.