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

closeOnSelect is not working #11

Open
ahireprashant77 opened this issue May 9, 2022 · 1 comment
Open

closeOnSelect is not working #11

ahireprashant77 opened this issue May 9, 2022 · 1 comment

Comments

@ahireprashant77
Copy link

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 (


Dropdown label


  <div className="preview-values">
    <b>Values: </b>
    {value}
  </div>
</div>

);
};
export default App;

@Arif-un
Copy link
Owner

Arif-un commented May 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants