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
|
endPos := pos
|
||||||
skipSpaces(false)
|
skipSpaces(false)
|
||||||
if startPos == endPos {
|
if startPos == endPos {
|
||||||
ErrorLog("empty tag")
|
//ErrorLog("empty tag")
|
||||||
return "", false
|
return "", true
|
||||||
}
|
}
|
||||||
return string(data[startPos:endPos]), 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 {
|
if focus, ok := boolProperty(view, Focusable, view.session); ok {
|
||||||
return focus
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue