Skip to content

Commit e2cce19

Browse files
committed
feat: 支持双向绑定
1 parent 1423d1f commit e2cce19

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/BootstrapBlazor.Vditor/Vditor.razor.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
1+
// Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
// Website: https://www.blazor.zone or https://argozhang.github.io/
44

@@ -237,10 +237,11 @@ public async Task TriggerRenderedAsync()
237237
[JSInvokable]
238238
public async Task TriggerInputAsync(string value)
239239
{
240+
_lastValue = value;
241+
CurrentValue = value;
242+
240243
if (OnInputAsync != null)
241244
{
242-
_lastValue = value;
243-
CurrentValue = value;
244245
await OnInputAsync(value);
245246
}
246247
}

0 commit comments

Comments
 (0)