mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-06 05:06:16 +00:00
fix(textinput): return a pointer to StyleState
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user