We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I am attempting to style the select filter using input_options. However, passing a value for class has no effect.
input_options
class
Declare a filter with input options specifying the class attribute:
filter(:name, :enum, input_options: {class: 'border-gray-300'}, select: proc { … })
Expected
The provided value for class either combines with or clobbers the default value:
<select class="border-gray-300" name="q[name]" id="q_name">
Actual
The generated HTML retains the default value for class: <select class="name enum_filter" name="q[name]" id="q_name">
<select class="name enum_filter" name="q[name]" id="q_name">
The text was updated successfully, but these errors were encountered:
Prioritize input_options over default ones. #319
c3c5394
Fixed in 1.8.1. Please check.
Sorry, something went wrong.
Fix confirmed. The values are merged. Thank you!
No branches or pull requests
I am attempting to style the select filter using
input_options
. However, passing a value forclass
has no effect.Declare a filter with input options specifying the class attribute:
filter(:name, :enum, input_options: {class: 'border-gray-300'}, select: proc { … })
Expected
The provided value for
class
either combines with or clobbers the default value:<select class="border-gray-300" name="q[name]" id="q_name">
Actual
The generated HTML retains the default value for
class
:<select class="name enum_filter" name="q[name]" id="q_name">
The text was updated successfully, but these errors were encountered: