Skip to content

Commit

Permalink
constraint template to WidgetBuilder<'msg, #IFabControl>
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar Gonzalez authored and h0lg committed May 20, 2024
1 parent 1456c06 commit 37ac190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fabulous.Avalonia/Views/Controls/AutoCompleteBox.fs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ type AutoCompleteBoxModifiers =
/// <param name="this">Current widget.</param>
/// <param name="template">The template to render the items with.</param>
[<Extension>]
static member inline itemTemplate(this: WidgetBuilder<'msg, #IFabAutoCompleteBox>, template: 'item -> WidgetBuilder<'msg, 'widget>) =
static member inline itemTemplate(this: WidgetBuilder<'msg, #IFabAutoCompleteBox>, template: 'item -> WidgetBuilder<'msg, #IFabControl>) =
this.AddScalar(AutoCompleteBox.ItemTemplate.WithValue(WidgetHelpers.compileTemplate template))

/// <summary>Sets the TextFilter property.</summary>
Expand Down

0 comments on commit 37ac190

Please sign in to comment.