-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Space Navigation #3439
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: