Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/main/scripts/create-web-components-wrapper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const prettierConfig = {
};

const WEB_COMPONENTS_ROOT_DIR = path.join(PATHS.packages, 'main', 'src', 'webComponents');
const LIB_DIR = path.join(PATHS.packages, 'main', 'src', 'lib');
const DIST_DIR = path.join(PATHS.packages, 'main', 'src', 'dist');

const KNOWN_EVENTS = new Set(['click', 'input', 'submit', 'change', 'select', 'drop']);

Expand Down Expand Up @@ -1028,7 +1028,7 @@ resolvedWebComponents.forEach((componentSpec) => {
export type { ${componentSpec.module}PropTypes };`,
prettierConfig
);
fs.writeFileSync(path.join(LIB_DIR, `${componentSpec.module}.ts`), libContent);
fs.writeFileSync(path.join(DIST_DIR, `${componentSpec.module}.ts`), libContent);

// create test
if (!fs.existsSync(path.join(webComponentFolderPath, `${componentSpec.module}.test.tsx`))) {
Expand Down
6 changes: 5 additions & 1 deletion packages/main/src/webComponents/ComboBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ export interface ComboBoxPropTypes extends Omit<WithWebComponentPropTypes, 'onCh
* **Note:** filterValue property is updated, input is changed.
*/
onInput?: (event: CustomEvent) => void;
/**
* Fired when the selection has changed via user interaction
*/
onSelectionChange?: (event: CustomEvent<{ item: ReactNode }>) => void;
}

/**
Expand All @@ -110,7 +114,7 @@ const ComboBox: FC<ComboBoxPropTypes> = withWebComponent<ComboBoxPropTypes>(
['filter', 'filterValue', 'placeholder', 'value', 'valueState'],
['disabled', 'loading', 'readonly', 'required'],
['icon', 'valueStateMessage'],
['change', 'input']
['change', 'input', 'selection-change']
);

ComboBox.displayName = 'ComboBox';
Expand Down