Skip to content

Commit

Permalink
X.PagedList.Mvc.Core: Provide defaults for ToUnobtrusiveHtmlAttributes
Browse files Browse the repository at this point in the history
Use "Get" and "replace" which are the defaults for unobtrusive ajax here as well.

This removes the nullable warning for HttpMethod.
  • Loading branch information
adschmu committed Jul 10, 2024
1 parent e929ee4 commit 0795acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/X.PagedList.Mvc.Core/AjaxOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public virtual IEnumerable<HtmlAttribute> ToUnobtrusiveHtmlAttributes()
return attrs;
}

public string HttpMethod { get; set; }
public InsertionMode InsertionMode { get; set; }
public string HttpMethod { get; set; } = "GET";
public InsertionMode InsertionMode { get; set; } = InsertionMode.Replace;
public string? UpdateTargetId { get; set; }
public string? Confirm { get; set; }
public int LoadingElementDuration { get; set; }
Expand Down

0 comments on commit 0795acc

Please sign in to comment.