mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix(textinput,textarea): don't draw real cusor when blurred
This commit is contained in:
@@ -914,7 +914,7 @@ func (m Model) validate(v []rune) error {
|
||||
// f.Cursor.Position.X += offsetX
|
||||
// f.Cursor.Position.Y += offsetY
|
||||
func (m Model) Cursor() *tea.Cursor {
|
||||
if m.useVirtualCursor {
|
||||
if m.useVirtualCursor || !m.Focused() {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user