Fix quick input circuit crash
This commit is contained in:
@@ -80,7 +80,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="field-shell">
|
<div class="field-shell">
|
||||||
<label>Quick Parse Input</label>
|
<label>Quick Parse Input</label>
|
||||||
<InputTextArea class="input-shell critical-editor-textarea tall" @bind-Value="Model.QuickParseInput" @bind-Value:event="oninput" />
|
<textarea
|
||||||
|
class="input-shell critical-editor-textarea tall"
|
||||||
|
value="@Model.QuickParseInput"
|
||||||
|
@oninput="HandleQuickParseInputChanged"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<p class="muted critical-editor-advanced-hint">Example: <code>Foe brings his guard up, frightened by your display.</code> then <code>+5, 1mp</code> or <code>w/o shield: glancing blow, +15, 3s, 3np</code>.</p>
|
<p class="muted critical-editor-advanced-hint">Example: <code>Foe brings his guard up, frightened by your display.</code> then <code>+5, 1mp</code> or <code>w/o shield: glancing blow, +15, 3s, 3np</code>.</p>
|
||||||
<div class="critical-editor-quick-legend">
|
<div class="critical-editor-quick-legend">
|
||||||
@@ -472,6 +475,16 @@
|
|||||||
await OnSave.InvokeAsync();
|
await OnSave.InvokeAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void HandleQuickParseInputChanged(ChangeEventArgs args)
|
||||||
|
{
|
||||||
|
if (Model is null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Model.QuickParseInput = args.Value?.ToString() ?? string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
private void AddBaseEffect()
|
private void AddBaseEffect()
|
||||||
{
|
{
|
||||||
if (Model is null)
|
if (Model is null)
|
||||||
|
|||||||
Reference in New Issue
Block a user