@pagopa/mui-italia
Version:
[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).
12 lines (11 loc) • 451 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterOptionsInternal = void 0;
function filterOptionsInternal(options, state) {
const { inputValue, getOptionLabel } = state;
if (inputValue.trim() === '') {
return options;
}
return options.filter((option) => getOptionLabel(option).toLowerCase().includes(inputValue.toLowerCase()));
}
exports.filterOptionsInternal = filterOptionsInternal;