From 1b341485f2ea47c35117ccae5af322182ddee6f7 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 23 Oct 2024 16:52:57 -0400 Subject: [PATCH] fix(textinput): return a pointer to StyleState --- textinput/textinput.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/textinput/textinput.go b/textinput/textinput.go index 70b0a2c..e19ab97 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -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.