Allow refresh for hidden controls, as their HTML is now always generated.

[GB.WEB.GUI]
* BUG: Allow refresh for hidden controls, as their HTML is now always generated.
This commit is contained in:
Benoît Minisini 2023-05-19 10:14:15 +02:00
parent 946c102e51
commit 53fd551ba0

View file

@ -593,10 +593,10 @@ Public Sub _CanRefreshDyn() As Boolean
Return Return
Endif Endif
If IsHidden() Then ' If IsHidden() Then
'WebForm.PrintLog("_CanRefresh " & Me.Name & " --> no (IsHidden)") ' 'WebForm.PrintLog("_CanRefresh " & Me.Name & " --> no (IsHidden)")
Return ' Return
Endif ' Endif
If Not Form_Read()._Loaded Then If Not Form_Read()._Loaded Then
'WebForm.PrintLog("_CanRefresh " & Me.Name & " --> no (Form not loaded)") 'WebForm.PrintLog("_CanRefresh " & Me.Name & " --> no (Form not loaded)")
@ -635,7 +635,7 @@ End
Public Sub Refresh() Public Sub Refresh()
If Not _CanRefresh() Then If $bHidden Or If Not _CanRefresh() Then
'WebForm.PrintLog("Cannot refresh " & Me.Name & ": " & WebForm._InMessage & " / " & _NoRefresh & " / " & IsHidden() & " / " & _Refresh) 'WebForm.PrintLog("Cannot refresh " & Me.Name & ": " & WebForm._InMessage & " / " & _NoRefresh & " / " & IsHidden() & " / " & _Refresh)
Return Return
Else Else