@jbrowse/plugin-linear-genome-view
Version:
JBrowse 2 linear genome view
19 lines (18 loc) • 827 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = AutocompleteTextField;
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
function AutocompleteTextField({ TextFieldProps, inputBoxVal, params, setInputValue, setCurrentSearch, }) {
const { helperText, slotProps = {} } = TextFieldProps;
return ((0, jsx_runtime_1.jsx)(material_1.TextField, { onBlur: () => {
setInputValue(inputBoxVal);
}, ...params, ...TextFieldProps, size: "small", helperText: helperText, slotProps: {
input: {
...params.InputProps,
...slotProps.input,
},
}, placeholder: "Search for location", onChange: e => {
setCurrentSearch(e.target.value);
} }));
}