Ticket #1467 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

auto-focus can occur when config.autofocus = false

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords: autofocus
Cc:

Description

Lines 3332-3333 of XinhaCore?.js (0.96beta2) specify the following condition for auto-focus to occur:

if ((typeof editor.config.autofocus != "undefined") &&
      ((editor.config.autofocus == editor._textArea.id) || editor.config.autofocus == true))

If config.autofocus = false and editor._textArea does not have an id, this condition will pass!

Change History

Changed 4 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:1209

Note: See TracTickets for help on using tickets.