mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 23:35:13 +00:00
only set the value if there is a name on the button
This commit is contained in:
parent
1298c41435
commit
b399258dec
@ -1798,8 +1798,9 @@ return (function () {
|
|||||||
var internalData = getInternalData(elt);
|
var internalData = getInternalData(elt);
|
||||||
if (internalData.lastButtonClicked) {
|
if (internalData.lastButtonClicked) {
|
||||||
var name = getRawAttribute(internalData.lastButtonClicked,"name");
|
var name = getRawAttribute(internalData.lastButtonClicked,"name");
|
||||||
var value = internalData.lastButtonClicked.value;
|
if (name) {
|
||||||
values[name] = value;
|
values[name] = internalData.lastButtonClicked.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// include any explicit includes
|
// include any explicit includes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user