Skip to content

Commit 8c6a39b

Browse files
committed
largeData options render
1 parent 83529aa commit 8c6a39b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Options.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22

3-
function Options({ opts, singleSelect, addValue, checkValueExist, value }) {
3+
function Options({ opts, singleSelect, addValue, checkValueExist, value, largeData, menuOpen }) {
4+
if (largeData && !menuOpen) return null
45
const optsArr = []
56
function addInArr(opts) {
67
for (const [i, opt] of opts.entries()) {
@@ -37,8 +38,7 @@ function Options({ opts, singleSelect, addValue, checkValueExist, value }) {
3738
title={opt.label}
3839
className={`msl-option
3940
${checkValueExist(opt, value) ? 'msl-option-active' : ''}
40-
${opt.disabled ? 'msl-option-disable' : ''} ${
41-
opt.classes !== undefined ? opt.classes : ''
41+
${opt.disabled ? 'msl-option-disable' : ''} ${opt.classes !== undefined ? opt.classes : ''
4242
}`}
4343
value={opt.value}
4444
>

0 commit comments

Comments
 (0)