Skip to content

Commit

Permalink
Merge pull request #65 from mgeorgebrown89/plainttextinput-fix
Browse files Browse the repository at this point in the history
plain text input fix
  • Loading branch information
mgeorgebrown89 authored Oct 31, 2019
2 parents ff4f99f + 6b1aee1 commit 965b457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slack/Slack.BlockKit/Classes/Layout/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public object element
{
get => _element; set
{
if ((value is Slack.Composition.PlainText) || (value is Slack.Elements.SelectMenu) || (value is Slack.Elements.Datepicker))
if ((value is Slack.Elements.PlainTextInput) || (value is Slack.Elements.SelectMenu) || (value is Slack.Elements.Datepicker))
{
_element = value;
}
else
{
throw new System.Exception($"Input element must be either a PlainText object, SelectMenu, or Datepicker.");
throw new System.Exception($"Input element must be either a PlainTextInput object, SelectMenu, or Datepicker.");
}
}
}
Expand Down

0 comments on commit 965b457

Please sign in to comment.