Skip to content

Commit

Permalink
Fix multiselect dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
mmirus committed Dec 1, 2018
1 parent dc75230 commit a86f711
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.2 / 2018-12-1

- Fix for multiselect dropdowns

## 1.0.1 / 2018-12-1

- Add pre-commit lint
Expand Down
1 change: 1 addition & 0 deletions app/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function dataAttrNamesToArray($attrs)
if ($attrHtml) {
switch ($field->type) {
case 'select':
case 'multiselect':
$choice_markup = str_replace('<option ', "<option $attrHtml", $choice_markup);
break;

Expand Down
2 changes: 1 addition & 1 deletion gravity-forms-data-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Add custom data attributes to Gravity Forms fields.
Author: Matt Mirus
Author URI: https://github.com/mmirus
Version: 1.0.1
Version: 1.0.2
GitHub Plugin URI: https://github.com/mmirus/gravity-forms-data-attributes
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gravity-forms-data-attributes",
"version": "1.0.1",
"version": "1.0.2",
"description": "Add custom data attributes to Gravity Forms fields.",
"private": true,
"repository": "[email protected]:mmirus/gravity-forms-data-attributes.git",
Expand Down

0 comments on commit a86f711

Please sign in to comment.