Skip to content

Commit a86f711

Browse files
committed
Fix multiselect dropdowns
1 parent dc75230 commit a86f711

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.2 / 2018-12-1
4+
5+
- Fix for multiselect dropdowns
6+
37
## 1.0.1 / 2018-12-1
48

59
- Add pre-commit lint

app/frontend.php

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function dataAttrNamesToArray($attrs)
6060
if ($attrHtml) {
6161
switch ($field->type) {
6262
case 'select':
63+
case 'multiselect':
6364
$choice_markup = str_replace('<option ', "<option $attrHtml", $choice_markup);
6465
break;
6566

gravity-forms-data-attributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Description: Add custom data attributes to Gravity Forms fields.
66
Author: Matt Mirus
77
Author URI: https://github.com/mmirus
8-
Version: 1.0.1
8+
Version: 1.0.2
99
GitHub Plugin URI: https://github.com/mmirus/gravity-forms-data-attributes
1010
*/
1111

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gravity-forms-data-attributes",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Add custom data attributes to Gravity Forms fields.",
55
"private": true,
66
"repository": "[email protected]:mmirus/gravity-forms-data-attributes.git",

0 commit comments

Comments
 (0)