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/LiveComponent/assets/dist/live_controller.js
+10-22Lines changed: 10 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1130,15 +1130,7 @@ class default_1 extends Controller {
1130
1130
this._makeRequest(null);
1131
1131
}
1132
1132
_getValueFromElement(element){
1133
-
constvalue=element.dataset.value||element.value;
1134
-
if(!value){
1135
-
constclonedElement=(element.cloneNode());
1136
-
if(!(clonedElementinstanceofHTMLElement)){
1137
-
thrownewError('cloneNode() produced incorrect type');
1138
-
}
1139
-
thrownewError(`The update() method could not be called for "${clonedElement.outerHTML}": the element must either have a "data-value" or "value" attribute set.`);
0 commit comments