protected async void PathChangedHandler(UIChangeEventArgs e) { if (IsMultiple) { var files = await JSRunner.GetFilePaths(ElementRef); PathChanged?.Invoke(files); } else { PathChanged?.Invoke(new string[] { e?.Value?.ToString() }); } }
protected async void PathChangedHandler(UIChangeEventArgs e) { if (IsMultiple) { InternalValue = await JSRunner.GetFilePaths(ElementRef); } else { InternalValue = new string[] { e?.Value?.ToString() } }; PathChanged?.Invoke(InternalValue); }