You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/javascripts/jquery.selectBoxIt.js
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,13 @@
100
100
"rel"
101
101
102
102
],
103
+
104
+
// **dontCopyAttributes: HTML attributes to explicitly blacklist from being copied to the new dropdown
105
+
"dontCopyAttributes": [
106
+
107
+
"data-reactid"
108
+
109
+
],
103
110
104
111
// **copyClasses**: HTML classes that will be copied over to the new drop down. The value indicates where the classes should be copied. The default value is 'button', but you can also use 'container' (recommended) or 'none'.
105
112
"copyClasses": "button",
@@ -1805,6 +1812,7 @@
1805
1812
// Stores the plugin prototype object in a local variable
1806
1813
varselectBoxIt=$.selectBox.selectBoxIt.prototype;
1807
1814
1815
+
1808
1816
// Add Options Module
1809
1817
// ==================
1810
1818
@@ -2140,7 +2148,9 @@
2140
2148
2141
2149
// Stores the plugin context inside of the self variable
2142
2150
varself=this,
2143
-
whitelist=self.options["copyAttributes"];
2151
+
whitelist=self.options["copyAttributes"],
2152
+
blacklist=self.options["dontCopyAttributes"];
2153
+
2144
2154
2145
2155
// If there are array properties
2146
2156
if(arr.length){
@@ -2151,6 +2161,13 @@
2151
2161
// Get's the property name and property value of each property
Copy file name to clipboardExpand all lines: src/javascripts/modules/jquery.selectBoxIt.core.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,13 @@
100
100
"rel"
101
101
102
102
],
103
+
104
+
// **dontCopyAttributes: HTML attributes to explicitly blacklist from being copied to the new dropdown
105
+
"dontCopyAttributes": [
106
+
107
+
"data-reactid"
108
+
109
+
],
103
110
104
111
// **copyClasses**: HTML classes that will be copied over to the new drop down. The value indicates where the classes should be copied. The default value is 'button', but you can also use 'container' (recommended) or 'none'.
105
112
"copyClasses": "button",
@@ -1803,4 +1810,4 @@
1803
1810
});
1804
1811
1805
1812
// Stores the plugin prototype object in a local variable
0 commit comments