You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the BarcodeScannerDialog by clicking the respective button (React state open is set to true)
Close the dialog by pressing ESC or the "Cancel" button
Since there is no (public) way to register to a "close" event, the open state stays true.
So if I didn't miss something, the dialog is currently not usable without deviating from the standard of how to control components in React, or using deprecated methods.
On a side note, your example still uses the deprecated methods.
Proposed Solution
Expose the close events of the Dialog or add a custom close event specific to this component.
Proposed Alternatives
No response
Organization
UI5WCR
Additional Context
No response
Priority
None
Privacy Policy
I’m not disclosing any internal or sensitive information.
The text was updated successfully, but these errors were encountered:
…ts (#8753)
This change adds support for `close` and `open` events to
the barcode scanner dialog. Along with this change, the documentation
and the sample have been updated.
Fixes#8695
Feature Request Description
With v1.24.0 the
open
property was introduced and theshow
andclose
methods were deprecated.In React it's common to fully control a component, but since there are no events exposed if the dialog is closed, this is not possible.
E.g.:
BarcodeScannerDialog
by clicking the respective button (React stateopen
is set totrue
)open
state staystrue
.So if I didn't miss something, the dialog is currently not usable without deviating from the standard of how to control components in React, or using deprecated methods.
On a side note, your example still uses the deprecated methods.
Proposed Solution
Expose the close events of the
Dialog
or add a custom close event specific to this component.Proposed Alternatives
No response
Organization
UI5WCR
Additional Context
No response
Priority
None
Privacy Policy
The text was updated successfully, but these errors were encountered: