I am using autoFocusedElement to set focus to the first input on a dialog as described at https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/initial-focus/. When that input is wrapped in a floating label, it appears to work, but it produces the following error in the console:
<div class="example-wrapper">
<button kendoButton *ngIf="!opened" (click)="open()">Open dialog</button>
<kendo-dialog *ngIf="opened"
autoFocusedElement="#username"
title="Please confirm"
(close)="close('cancel')"
[minWidth]="250"
[width]="450"
>
<div style="margin: 30px; text-align: center;">
<p>Enter your username below</p>
<kendo-floatinglabel text="User Name">
<input kendoTextBox id="username" placeholder="Your username" style="width: 200px"/>
</kendo-floatinglabel>
</div>
<kendo-dialog-actions>
<button kendoButton (click)="close('no')">No</button>
<button kendoButton (click)="close('yes')" primary="true">Yes</button>
</kendo-dialog-actions>
</kendo-dialog>
</div>
By the way, I also put together a repro on StackBlitz: https://stackblitz.com/edit/angular-2fng8f?file=app/app.component.ts
In my code, I got a similar error when using kendo-textbox (rather than input), so I did more research and added a detectChanges() to my code. That ended up working around this issue as well. I have added that to the open() function of the StackBlitz above. Uncomment the detectChanges() line to prevent the error. That said, I'm not sure if this is the appropriate way to handle the issue, so I will wait for an official answer.