kartik-v / yii2-widgets

Collection of useful widgets for Yii Framework 2.0
http://demos.krajee.com/widgets
Other
558 stars 175 forks source link

ActiveForm auto-submits after each field is completed #328

Open larry-tx opened 7 years ago

larry-tx commented 7 years ago

I'm not sure if this issue belongs here, but since it spans all the widgets, it seems like a good starting point. I'm using kartik-v/widgets 3.4.0 running under PHP 5.6.19 on Apache 2.1.12. Basically, I've got multiple ActiveForms all of which behave the same way. When I enter almost anything on the form, it auto-submits (I never touch the submit button). It captures whatever I've entered, and I can keep going back to edit/update the form and get all the fields completed -- eventually.

I say "enter almost anything" because, if I'm very careful, I can sometimes complete multiple textInput fields before the form auto-submits -- as long as I move from field to field with the mouse. If I use the Tab key, it will definitely auto-submit. All dropdowns always auto-submit, Switch input auto-submits, occasionally even clicking a TabX tab will cause an auto-submit without even touching a field.

If this question has been asked before, my apologies. I just couldn't find anything regarding it.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39981962-activeform-auto-submits-after-each-field-is-completed?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github).
kartik-v commented 7 years ago

Seems to be some configuration issue. Could you share the configuration of the forms and inputs fields to reproduce the issue? Also confirm if you do not have any other plugins or JavaScript code on your page.

larry-tx commented 7 years ago

As you may have guessed, I do have other plugins involved, although it mystifies me that, using the same plugins on each page, some react this way while others don't. In any case, virtually all of the plugins involved are kartik-v plugins, but of course, I can't imagine that you've got the time to test every possible combination. Anyway, I'm attaching one particularly problematic set of pages. I know that there is a prime opportunity for a dependent dropdown on this page, but I wanted to get this issue resolved before pushing this page any further.

Let me know if you need the model and/or controller files. I didn't want to send more than what you might need. Thanks for taking the time to look at this.

home-inventory-item.zip