Commit 7f7f0c4
authored
Fix for autofocus when modal dialogs are opened (#13802)
This fixes autofocus when modal dialogs are opened by connecting to the 'opened' signal before showing the dialog.
When the animation time is greater than zero, the signal emission is delayed, so that it triggers after connecting.
When the animation time is 0, signal emission is instant, so that the signal connect happened after the onComplete() function of the animation is called.1 parent d0c4e07 commit 7f7f0c4
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments