B4J Tutorial SithasoDaisy: Click Events and event.PreventDefault

Hi

It is safe, that in all _click events, you add an event.PreventDefault

As an example...

B4X:
'Close input dialog
Private Sub mdlTasks_Cancel_Click (e As BANanoEvent)
    e.PreventDefault
    mdltasks.Hide
End Sub

This will prevent possible "jumps" of your app to undesirable places.

Thanks @Sascha
 
Top