Skip to content

Commit 32d2179

Browse files
committed
component renamed
1 parent 744d34d commit 32d2179

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.jsx renamed to src/MultiSelect.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-labels */
2-
import React, { useState, useEffect, useRef } from 'react'
2+
import { useState, useEffect, useRef } from 'react'
33
import Chip from './Chip.jsx'
44
import CloseIcon from './CloseIcon.jsx'
55
import DownIcon from './DownIcon.jsx'
@@ -21,6 +21,8 @@ MultiSelect.defaultProps = {
2121
emptyDataLabel: 'No Data Found',
2222
placeholder: 'Select...',
2323
onChange: () => {},
24+
onMenuOpen: () => {},
25+
onMenuClose: () => {},
2426
options: [
2527
{
2628
label: 'Empty',
@@ -375,7 +377,6 @@ function MultiSelect({
375377
}
376378

377379
const showLabel = (optionObj) => {
378-
console.log(optionObj)
379380
if (typeof optionObj.label === 'object') {
380381
return optionObj?.title || optionObj.value
381382
} else {

0 commit comments

Comments
 (0)