|
|
|
@ -310,7 +310,6 @@ public partial class Input<T> : InputBase<T>
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Content placeholders
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -390,8 +389,24 @@ public partial class Input<T> : InputBase<T>
|
|
|
|
|
private bool _showClearable;
|
|
|
|
|
private string _internalText;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sets the input text from outside programmatically
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="text"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public Task SetText(string text)
|
|
|
|
|
{
|
|
|
|
|
_internalText = text;
|
|
|
|
|
return SetTextAsync(text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private bool HasNativeHtmlPlaceholder()
|
|
|
|
|
{
|
|
|
|
|
return GetInputType() is InputType.Color or InputType.Date or InputType.DateTimeLocal or InputType.Month
|
|
|
|
|
or InputType.Time or InputType.Week;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Lifecycle events
|
|
|
|
@ -429,13 +444,6 @@ public partial class Input<T> : InputBase<T>
|
|
|
|
|
ChangeTextImmediately = true;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|