WebButton: Don't react to click when disabled.

[GB.WEB.GUI]
* BUG: WebButton: Don't react to click when disabled.
This commit is contained in:
gambas 2020-05-14 20:34:03 +02:00
parent ef32c2e7a2
commit 4bda6391ec

View file

@ -85,14 +85,16 @@ Public Sub _BeforeRender()
Dim vSave As Variant
Print "<div"; Me._GetClassId();
If $bImmediate Then
Print " onclick=\"";
vSave = WebForm._BeginJavascript()
Raise Click
WebForm._EndJavascript(vSave)
Print "\"";
Else
Print Me._GetEventJS("onclick", "click");
If Me.Enabled Then
If $bImmediate Then
Print " onclick=\"";
vSave = WebForm._BeginJavascript()
Raise Click
WebForm._EndJavascript(vSave)
Print "\"";
Else
Print Me._GetEventJS("onclick", "click");
Endif
Endif
Me._RenderStyleSheet()