Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 4

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?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try adding a property 

focus = true

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

View solution in original post

4 Replies

Avatar

Level 10
Add a loadcontent listener on your dialog. Get that field in listener and remove focus on it.       

Avatar

Level 4

how?

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

Avatar

Level 4

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

Avatar

Correct answer by
Level 10

Try adding a property 

focus = true

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