Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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