Unplanned
Last Updated: 29 Nov 2021 12:05 by ADMIN
Tech
Created on: 29 Nov 2021 12:04
Category: Grid
Type: Bug Report
2
The OnFocusOut event inside an EditorTemplate cannot be triggered by pressing Tab or Enter in Firefox

Here is the problem or bug I would like you to look at: If the percent entry component that is in the test application is not in an EditorTemplate, then the OnFocusOut event will fire in Firefox when the Tab or Enter keys is pressed. When the component is within an EditorTemplate, the OnFocusOut event does not fire in Firefox for the Tab/Enter key. This leads me to believe that it is a bug in the Grid and Treelist that is blocking that event from firing in Firefox.

Steps to reproduce:

  1. Run the attached project in Firefox.
  2. Change one value in percent and press Tab
  3. Open the same page in Chrome and repeat

---------------------ADMIN EDIT---------------------

There is one way you can use here to avoid manipulating the onfocusout event to handle percentage input. You can create in your model two properties/values. One value for visualization, with a custom format to represent percentage. Another value to pass along to the business logic, that has the actual fraction. You can see a reference to the described approach in this REPL link.

0 comments