When the MaskedTextBox is not focused and has no value, the Floating Label displays over the textbox as expected, however, the mask itself remains visible.
Here is a test example with a CSS workaround:
<TelerikFloatingLabel Text="Floating Label Over Mask">
<TelerikMaskedTextBox @bind-Value="@MaskedValue"
Mask="000-000"
Width="200px"
Class="mask-with-label" />
</TelerikFloatingLabel>
@if (string.IsNullOrEmpty(MaskedValue))
{
<style>
.mask-with-label input:not(:focus) {
color: transparent;
}
</style>
}
@code {
private string MaskedValue { get; set; } = string.Empty;
}
When the Label parameter of the TelerikMaskedTextBox is not defined, the Width is applied to the input of the component. However, it should be applied to the span holding the component.
====================================
ADMIN EDIT
A couple of workarounds:
=====================================