Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Nov 13, 2024
1 parent 05cf3de commit ff1924d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datagrid/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def datagrid_filter_input(attribute_or_filter, **options, &block)
options = add_filter_options(filter, **options)
type = options.delete(:type)&.to_sym
if %i[datetime-local date].include?(type)
if options.key?(:value) && options[:value].nil? &&
if options.key?(:value) && options[:value].nil?
# https://github.com/rails/rails/pull/53387
(options[:value] = "")
options[:value] = ""
end
elsif options[:value]
options[:value] = filter.format(options[:value])
Expand Down

0 comments on commit ff1924d

Please sign in to comment.