Skip to content

Commit f0aea63

Browse files
author
Rohit Bhati
committed
Fix the issue where tooltips persist, blocking access to UI controls. #8255
1 parent 9cd8492 commit f0aea63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/pgadmin/static/js/components/Buttons.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const PgIconButton = forwardRef(({icon, title, shortcut, className, split
197197
}
198198
} else if(color == 'primary') {
199199
return (
200-
<Tooltip title={shortcutTitle || title || ''} aria-label={title || ''} enterDelay={isDropdown ? 1500 : undefined} placement={tooltipPlacement}>
200+
<Tooltip title={shortcutTitle || title || ''} aria-label={title || ''} enterDelay={isDropdown ? 1500 : undefined} placement={tooltipPlacement} disableInteractive>
201201
<PrimaryButton ref={ref} style={style}
202202
className={['Buttons-iconButton', (splitButton ? 'Buttons-splitButton' : ''), className].join(' ')}
203203
accessKey={accesskey} data-label={title || ''} {...props}>
@@ -208,7 +208,7 @@ export const PgIconButton = forwardRef(({icon, title, shortcut, className, split
208208
);
209209
} else {
210210
return (
211-
<Tooltip title={shortcutTitle || title || ''} aria-label={title || ''} enterDelay={isDropdown ? 1500 : undefined} placement={tooltipPlacement}>
211+
<Tooltip title={shortcutTitle || title || ''} aria-label={title || ''} enterDelay={isDropdown ? 1500 : undefined} placement={tooltipPlacement} disableInteractive>
212212
<DefaultButton ref={ref} style={style}
213213
className={['Buttons-iconButton', 'Buttons-iconButtonDefault',(splitButton ? 'Buttons-splitButton' : ''), className].join(' ')}
214214
accessKey={accesskey} data-label={title || ''} {...props}>

web/pgadmin/tools/sqleditor/static/js/components/sections/ConnectionBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function ConnectionBar({connected, connecting, connectionStatus, connecti
110110
onClick={queryToolCtx.params.is_query_tool ? ()=>setConnDropdownOpen(true) : undefined}
111111
style={{backgroundColor: queryToolCtx.params.bgcolor, color: queryToolCtx.params.fgcolor}}
112112
>
113-
<Tooltip title={queryToolCtx.params.is_query_tool ? '' : connTitle}>
113+
<Tooltip title={queryToolCtx.params.is_query_tool ? '' : connTitle} disableInteractive>
114114
<Box display="flex" width="100%">
115115
<Box textOverflow="ellipsis" overflow="hidden" marginRight="auto">{connecting && gettext('(Obtaining connection)')}{connTitle}</Box>
116116
{queryToolCtx.params.is_query_tool && <Box display="flex" alignItems="center"><KeyboardArrowDownIcon /></Box>}

0 commit comments

Comments
 (0)