Skip to content

Commit

Permalink
[TT-13512] Add onBlur for combobox component
Browse files Browse the repository at this point in the history
  • Loading branch information
lghiur committed Nov 19, 2024
1 parent ba4573a commit bbf12e0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tyk-technologies/tyk-ui",
"version": "4.4.5",
"version": "4.4.6-alpha1",
"description": "Tyk UI - ui reusable components",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/form/components/Combobox2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function Combobox2({
CustomListComponent,
onBeforeChange = () => true,
onChange = () => {},
onBlur = () => {},
floatingContainerConfig,
expandMode,
infiniteScrollerConfig,
Expand Down Expand Up @@ -405,6 +406,7 @@ function Combobox2({
ref={rootRef}
tabIndex={disabled ? '-1' : '0'}
onClickCapture={onClickCapture}
onBlurCapture={onBlur}
{...restProps}
className={getCssClasses()}
>
Expand Down Expand Up @@ -546,6 +548,7 @@ Combobox2.propTypes = {
* The callback is called with two arguments: 1) the previous value, 2) the next value */
onBeforeChange: PropTypes.func,
onChange: PropTypes.func,
onBlur: PropTypes.func,
placeholder: PropTypes.string,
/** Enables the display of values as `Pill` components that can be
* removed without opening the dropdown. */
Expand Down

0 comments on commit bbf12e0

Please sign in to comment.