silevis / reactgrid

Add spreadsheet-like behavior to your React app

Home Page:https://reactgrid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event Handler assumes id is truthy

mithodin opened this issue · comments

The blur handler at

if ((event.target as HTMLInputElement)?.id.startsWith('react-select-')) { // give back focus on react-select dropdown blur

assumes that the target element of the event has an id property. If this is not the case (as happens e.g. on click outside of the table), the method throws an error.

This issue is fixed by #366

@mithodin I see PR #366 is closed. Is this problem still actual?

Oh, I deleted the wrong branch. The problem very much persists.

I recreated the branch and created a new pull request: #382