Set focus on search component - page load

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I need the focus to be on my search component when my page loads, not the first editable field editor field..  Anyone know how I can do this?  An inline snippet...?

Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
Bumping, because we'd love to not have our community load at the bottom of the page!  :D
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
Hi Chandra,

This is kind of hacky and may stop working in a future release, but if you add a nx-field css class to your search component, it should fix your issue.

Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
Perfect, thanks!!