forked from mbk-lab/rui_orig
Bug fixing
This commit is contained in:
parent
dec7e723ef
commit
43cb889ab1
4
data.go
4
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
|
||||
}
|
||||
|
|
11
view.go
11
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue