First field in dialog is getting auto focused.How to disable it? | Community
Skip to main content
sureshy2015
Level 4
October 16, 2015
Solved

First field in dialog is getting auto focused.How to disable it?

  • October 16, 2015
  • 4 replies
  • 1257 views

Hi,

I have selection as first field in my component dialog.When I open dialog selection getting highlighted(drop down in getting auto focused-Values are shown as if we wanted to change value.).How to disable it?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

Try adding a property 

focus = true

in you selection field, it should work. I tested it with richtext, It worked fine

4 replies

edubey
edubeyAccepted solution
Level 10
October 16, 2015

Try adding a property 

focus = true

in you selection field, it should work. I tested it with richtext, It worked fine

sureshy2015
Level 4
October 16, 2015

How to blur it on load?.Is there any method in widgets api?

sureshy2015
Level 4
October 16, 2015

how?

we have only focus method.there is no remove focus method.

edubey
Level 10
October 16, 2015
Add a loadcontent listener on your dialog. Get that field in listener and remove focus on it.