xxxxxxxxxx
import React from "react";
import Select from "react-select";
const options = [
{ value: "apple", label: "Apple" },
{ value: "banana", label: "Banana" },
{ value: "orange", label: "Orange" }
];
const customStyles = {
control: (styles) => ({
styles,
pointerEvents: "none" // Disable pointer events on the control element
})
};
const App = () => {
return <Select options={options} isDisabled styles={customStyles} />;
};
export default App;