telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
211 stars 39 forks source link

[Bug][Form] utils.mjs try to focus on null object #2461

Closed filipc-tq closed 2 months ago

filipc-tq commented 2 months ago

I'm submitting a...

Current behavior

Script @progress/kendo-react-data-tools/navigation/utils.mjs throwing error when editable grid inside Form.Field element is changing value programmatically. It is try to invoke focus() function on "void 0" when variable t is null. There should be a null check before invoking function.

oe = (e) => {
  const t = e.querySelector(".k-grid-edit-cell"), r = t && t.querySelector("input");
  r ? r.focus() : (t == null ? void 0 : t.firstChild).focus();
}

Environment

Package versions:

@progress/kendo-react-data-tools@8.2.0
silviyaboteva commented 2 months ago

Hello, @filipc-tq Thank you for reporting this. It is considered as bug and we will fix it as soon as possible.

silviyaboteva commented 2 months ago

Hello again, @filipc-tq

The null check is introduced in v8.3.0-develop.9 and it will be available in the next official version.

Still, it would be of great help if you share with us a reproducible demo project that demonstrates the scenario with the integration of the Grid in a Form Field.

Thank you!