我想动态地禁用react select模块中的选项,同时保持输入选项的功能。我尝试了下面的代码。但这会禁用整个事情。我正在尝试仅禁用这些选项。我希望模块的行为像输入字段一样。
我可以有条件地在反应选择和输入字段之间切换。那将解决我的问题。但是有没有办法在react-select中解决这个问题?
<?php
$testString = <<<EOF
id1 name1 lastname1 age1 birthdate1
id2 name2 lastname2 age2 birthdate2
id3 name3 lastname3 age3 birthdate3
id4 name4 lastname4 age4 birthdate4
EOF;
foreach (explode("\n", $testString) as $lineNo => $line) {
var_dump(
str_getcsv($line, ' ', '')
);
}