Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TT-13512] Add onBlur for combobox component #393

Closed
wants to merge 1 commit into from
Closed
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
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
Loading