You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug - I am using a AutoComplete Render Cell in my datagrid column.(City) .When i want to enter a city like for example New York , as soon as i press the space key after new the datagrid gets scrolled and my data is lost that i entered this is causing me unable to enter any city with a space in its name.
My Code-
const debounceSearch = debounce((event, newValue) => {
if (newValue !== "") {
const filteredCities = allCities.filter((e) => e.name.toLowerCase().includes(newValue.toLowerCase()));
setCityOptions(filteredCities); // Update the Autocomplete options
}
}, 300);
// Debounce function implementation (you can use lodash or similar library)
function debounce(func, wait) {
let timeout;
return function () {
const context = this;
const args = arguments;
const later = function () {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
Describe the bug - I am using a AutoComplete Render Cell in my datagrid column.(City) .When i want to enter a city like for example New York , as soon as i press the space key after new the datagrid gets scrolled and my data is lost that i entered this is causing me unable to enter any city with a space in its name.
My Code-
const debounceSearch = debounce((event, newValue) => {
if (newValue !== "") {
const filteredCities = allCities.filter((e) => e.name.toLowerCase().includes(newValue.toLowerCase()));
}, 300);
// Debounce function implementation (you can use lodash or similar library)
function debounce(func, wait) {
let timeout;
return function () {
const context = this;
const args = arguments;
const later = function () {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
{
{
field: 'StudentCity',
headerName: 'Student City',
width: 150,
editable:false,
renderCell: (params) => {
// const selectedCountry = params.row.StudentCountry;
Expected behavior- I want to enter my city and when i am in autocomplete to disable navigation of the data grid.
Environment
react-data-grid
version: "^7.0.0-beta.41"react
/react-dom
version: "^18.2.0"The text was updated successfully, but these errors were encountered: