Merge pull request #21 from anoshenko/bug-fixes/popup-methods-binding

Fixed issue with popup button listener bindings
This commit is contained in:
Alexei Anoshenko 2026-08-12 14:44:00 +03:00 committed by GitHub
commit ae1e22a553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -1819,8 +1819,7 @@ func (data *popupListenerBinding) Run(popup Popup) {
args = []reflect.Value{} args = []reflect.Value{}
case 1: case 1:
inType := methodType.In(0) if equalType(methodType.In(0), reflect.TypeOf(popup)) {
if inType == reflect.TypeOf(popup) {
args = []reflect.Value{reflect.ValueOf(popup)} args = []reflect.Value{reflect.ValueOf(popup)}
} }
} }