[Gambas-user] Error with selecting WebRadioButton on form load

Benoit Minisini benoit.minisini at gambas-basic.org
Thu May 11 01:47:15 CEST 2023


Le 07/05/2023 à 06:36, Safiur Rahman a écrit :
> Hi
> 
> I am getting error when I try to select WebRadioButton on form load of a 
> Run form in gb.web.gui version 3.18.2
> 
> The error in console is:
> caught TypeError: Cannot set properties of null (setting 'checked')
>      at eval (eval at answer (lib:0.0.1.js:288:11), <anonymous>:1:32)
>      at Object.answer (lib:0.0.1.js:288:11)
>      at xhr.onreadystatechange (lib:0.0.1.js:340:50)
> 
> Dim xx As String
> 
>   xx = Class1()
> 
> ''---------Class1-----------------
> Static Public Sub _call() As String
> 
>    Return Webform2.Run()
> End
> 
> ''----------Webform2 ---------------
> Private $sValue As String
> 
> Public Sub Run() As String
>    rbformA.Value = True
>    If Me.ShowModal() Then Return $sValue
> End
> 
> It was working fine till 3.18.1
> 
> Attached a sample to reproduce the error
> 
> 
> 
> -- 
> Regards
> Safiur Rahman
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

It's fixed in commit 
https://gitlab.com/gambas/gambas/-/commit/545518406f229ba81af76d67b6fa8cafc5c0bb1a.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list