revolist / revogrid

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
https://rv-grid.com
MIT License
2.74k stars 171 forks source link

beforefocuslost event never fires (confirmed on multiple frameworks) #372

Open atsepkov opened 1 year ago

atsepkov commented 1 year ago

Describe the issue The API documentation lists an event beforefocuslost (https://revolist.github.io/revogrid/guide/api.html#events) that fires before cell focus is lost. I also see this event in the code in custom-element/revo-grid.js. However, this event never fires for some reason. I was able to reproduce this both with React and Svelte, so the issue has to be in the root repo.

To Reproduce Each of these examples implements 2 events, Svelte implements beforeEdit (to use as control group to show that I'm using events correctly) and beforeFocusLost (to show that this event does not fire). The React example, similarly, implements afterEdit and beforeFocusLost. In both cases, the beforeEdit/afterEdit events DO fire, while beforeFocusLost does not.

Svelte example: https://codesandbox.io/s/revogrid-svelte-legacy-forked-h101lq React example: https://codesandbox.io/s/bold-hill-cchvlf