diff --git a/test/core/ajax.js b/test/core/ajax.js index 220173ccd..ae33fd53d 100644 --- a/test/core/ajax.js +++ b/test/core/ajax.js @@ -1208,4 +1208,26 @@ describe("Core htmx AJAX Tests", function(){ this.server.respond(); values.should.deep.equal({t1: 'textValue', b1: ['inputValue', 'buttonValue']}); }) + + it('properly handles inputs external to form', function () { + var values; + this.server.respondWith("Post", "/test", function (xhr) { + values = getParameters(xhr); + xhr.respond(204, {}, ""); + }); + + make('
' + + '' + + '' + + ''); + + byId("submit").click(); + this.server.respond(); + values.should.deep.equal({t1: 'textValue', b1: ['inputValue', 'buttonValue'], s1: "selectValue"}); + }) })