Arif-un / react-multiple-select-dropdown-lite

Multiple select dropdown component in react.
MIT License
11 stars 6 forks source link

closeOnSelect is not working #11

Open ahireprashant77 opened 2 years ago

ahireprashant77 commented 2 years ago

import "./styles.css"; import React, { useState } from "react"; import MultiSelect from "react-multiple-select-dropdown-lite"; import "react-multiple-select-dropdown-lite/dist/index.css";

const App = () => { const [value, setvalue] = useState(""); const handleOnchange = (val) => setvalue(val); const options = [ { label: "Option 1", value: "Option 1" }, { label: "Option 2", value: "Option 2" }, { label: "Option 3", value: "Option 3" }, { label: "Option 4", value: "Option 4" } ];

return (


Values: {value}

); }; export default App;

Arif-un commented 2 years ago

Hi @ahireprashant77 , this code does not make any sense. can you please re-produce the problem in https://codesandbox.io ?