Skip to content

Commit 9b1a60c

Browse files
committed
fix: dropdown closing when click on scrollbar
1 parent 5a29566 commit 9b1a60c

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

packages/pluggableWidgets/combobox-web/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- We fixed dropdown options directly closing when clicking on scrollbar if placed in popup dialog
12+
913
## [1.1.2] - 2024-01-19
1014

1115
### Fixed

packages/pluggableWidgets/combobox-web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@mendix/combobox-web",
33
"widgetName": "Combobox",
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"description": "Configurable Combo box widget with suggestions and autocomplete.",
6-
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
6+
"copyright": "© Mendix Technology BV 2024. All rights reserved.",
77
"license": "Apache-2.0",
88
"repository": {
99
"type": "git",
@@ -21,7 +21,7 @@
2121
"marketplace": {
2222
"minimumMXVersion": "9.24.0",
2323
"appNumber": 219304,
24-
"appName": "Combobox"
24+
"appName": "Combo box"
2525
},
2626
"testProject": {
2727
"githubUrl": "https://github.com/mendix/testProjects",

packages/pluggableWidgets/combobox-web/src/components/ComboboxMenuWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export function ComboboxMenuWrapper(props: ComboboxMenuWrapperProps): ReactEleme
6464
})}
6565
{...getMenuProps?.(
6666
{
67-
onClick: onOptionClick
67+
onClick: onOptionClick,
68+
onMouseDown: PreventMenuCloseEventHandler
6869
},
6970
{ suppressRefError: true }
7071
)}

packages/pluggableWidgets/combobox-web/src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="Combobox" version="1.1.2" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="Combobox" version="1.1.3" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="Combobox.xml" />
66
</widgetFiles>

0 commit comments

Comments
 (0)