Fixed "@..." text bug in EditView

This commit is contained in:
anoshenko 2021-11-17 12:47:14 +03:00
parent 07e1dd3799
commit 584983b818
1 changed files with 4 additions and 2 deletions

View File

@ -484,8 +484,10 @@ func GetText(view View, subviewID string) string {
view = ViewByID(view, subviewID)
}
if view != nil {
if text, ok := stringProperty(view, Text, view.Session()); ok {
return text
if value := view.getRaw(Text); value != nil {
if text, ok := value.(string); ok {
return text
}
}
}
return ""