Bug fixing

This commit is contained in:
anoshenko 2023-05-02 14:49:35 +03:00
parent dec7e723ef
commit 43cb889ab1
2 changed files with 13 additions and 2 deletions

View File

@ -440,8 +440,8 @@ func ParseDataText(text string) DataObject {
endPos := pos
skipSpaces(false)
if startPos == endPos {
ErrorLog("empty tag")
return "", false
//ErrorLog("empty tag")
return "", true
}
return string(data[startPos:endPos]), true
}

11
view.go
View File

@ -175,6 +175,17 @@ func (view *viewData) Focusable() bool {
if focus, ok := boolProperty(view, Focusable, view.session); ok {
return focus
}
if style, ok := stringProperty(view, Style, view.session); ok {
if style, ok := view.session.resolveConstants(style); ok {
if value := view.session.styleProperty(style, Focusable); ok {
if focus, ok := valueToBool(value, view.Session()); ok {
return focus
}
}
}
}
return false
}