diff --git a/data.go b/data.go index 4e51271..60ce9a3 100644 --- a/data.go +++ b/data.go @@ -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 } diff --git a/view.go b/view.go index f8e1c5e..9dd6037 100644 --- a/view.go +++ b/view.go @@ -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 }