Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e63563 commit 0e2b3ccCopy full SHA for 0e2b3cc
client/packages/lowcoder/src/comps/comps/buttonComp/dropdownComp.tsx
@@ -111,7 +111,8 @@ const DropdownTmpComp = (function () {
111
items={items}
112
onClick={({ key }) => {
113
const item = items.find((o) => o.key === key);
114
- item && props.options[item.index]?.onEvent("click");
+ const itemIndex = props.options.findIndex(option => option.label === item?.label);
115
+ item && props.options[itemIndex]?.onEvent("click");
116
}}
117
/>
118
);
0 commit comments