fix(textinput): return a pointer to StyleState

This commit is contained in:
Ayman Bagabas
2024-10-23 16:52:57 -04:00
parent 432972ae77
commit 1b341485f2
+3 -3
View File
@@ -191,11 +191,11 @@ func New() Model {
}
// styles returns the appropriate styles for the current focus state.
func (m Model) styles() StyleState {
func (m Model) styles() *StyleState {
if m.focus {
return m.Styles.Focused
return &m.Styles.Focused
}
return m.Styles.Blurred
return &m.Styles.Blurred
}
// SetValue sets the value of the text input.