minor fix for placeholder content
This commit is contained in:
parent
051534b80c
commit
aaf2c96374
@ -69,11 +69,11 @@
|
|||||||
</div>
|
</div>
|
||||||
@if (ReadOnly)
|
@if (ReadOnly)
|
||||||
{
|
{
|
||||||
<textarea class="form-control" @bind="@_content" rows="10" readonly></textarea>
|
<textarea class="form-control" placeholder="@Placeholder" @bind="@_content" rows="10" readonly></textarea>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<textarea class="form-control" @bind="@_content" rows="10"></textarea>
|
<textarea class="form-control" placeholder="@Placeholder" @bind="@_content" rows="10"></textarea>
|
||||||
}
|
}
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
</TabStrip>
|
</TabStrip>
|
||||||
@ -111,12 +111,7 @@
|
|||||||
protected override void OnInitialized()
|
protected override void OnInitialized()
|
||||||
{
|
{
|
||||||
_original = Content;
|
_original = Content;
|
||||||
|
|
||||||
_content = _original;
|
_content = _original;
|
||||||
if (string.IsNullOrEmpty(_content))
|
|
||||||
{
|
|
||||||
_content = Placeholder;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
|
Reference in New Issue
Block a user