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
edgarfgp committed May 18, 2024
1 parent 2434f0a commit 4fa1e6e
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 4fa1e6e

Please sign in to comment.