diff --git a/CHANGELOG.md b/CHANGELOG.md index de73341..5171c4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,23 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added -- N/A - -### Changed -- N/A - -### Deprecated -- N/A - -### Removed -- N/A - ### Fixed -- N/A - -### Security -- N/A +- Fixed the issue when accessing Slack::BlockKit::Layout.Input (#197 by @070bex424pankaj) ## [0.25.0] - 2024-11-22 diff --git a/lib/slack/block_kit/layout/input.rb b/lib/slack/block_kit/layout/input.rb index 46e9469..0f36a50 100644 --- a/lib/slack/block_kit/layout/input.rb +++ b/lib/slack/block_kit/layout/input.rb @@ -216,6 +216,28 @@ def plain_text_input( self end + def number_input( + action_id:, + is_decimal_allowed: nil, + placeholder: nil, + initial_value: nil, + min_value: nil, + max_value: nil, + focus_on_load: nil + ) + @element = Element::NumberInput.new( + action_id: action_id, + is_decimal_allowed: is_decimal_allowed, + placeholder: placeholder, + initial_value: initial_value, + min_value: min_value, + max_value: max_value, + focus_on_load: focus_on_load + ) + + self + end + def url_text_input( action_id:, placeholder: nil,