Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Mar 11, 2015
1 parent 4773e3d commit c9e2221
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.2.1 / 2015-03-05

Updated to get-form-data v1.2.1 - `<fieldset>` elements in `form.elements` are
now ignored.

# 1.2.0 / 2015-03-05

Updated to get-form-data v1.2.0 - file input data are now native `File` objects
Expand Down
13 changes: 8 additions & 5 deletions dist/react-auto-form.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* react-auto-form 1.2.0 - https://github.com/insin/react-auto-form
* react-auto-form 1.2.1 - https://github.com/insin/react-auto-form
* MIT Licensed
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.AutoForm=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
Expand Down Expand Up @@ -59,10 +59,11 @@ var NODE_LIST_CLASSES = {
, '[object RadioNodeList]': true
}

var BUTTON_INPUT_TYPES = {
var IGNORED_INPUT_TYPES = {
'button': true
, 'reset': true
, 'submit': true
, 'fieldset': true
}

var CHECKED_INPUT_TYPES = {
Expand Down Expand Up @@ -98,7 +99,7 @@ function getFormData(form, options) {
// Get unique submittable element names for the form
for (var i = 0, l = form.elements.length; i < l; i++) {
var element = form.elements[i]
if (BUTTON_INPUT_TYPES[element.type] || element.disabled) {
if (IGNORED_INPUT_TYPES[element.type] || element.disabled) {
continue
}
elementName = element.name || element.id
Expand Down Expand Up @@ -232,7 +233,7 @@ getFormData.getNamedFormElementData = getNamedFormElementData
module.exports = getFormData
},{}],3:[function(require,module,exports){
/**
* Copyright 2014, Facebook, Inc.
* Copyright 2014-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
Expand All @@ -244,6 +245,8 @@ module.exports = getFormData

// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign

'use strict';

function assign(target, sources) {
if (target == null) {
throw new TypeError('Object.assign target cannot be null or undefined');
Expand Down Expand Up @@ -273,7 +276,7 @@ function assign(target, sources) {
}

return to;
};
}

module.exports = assign;

Expand Down
4 changes: 2 additions & 2 deletions dist/react-auto-form.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-auto-form",
"description": "A React component which simplifies getting user input from forms via nChange and onSubmit",
"version": "1.2.0",
"version": "1.2.1",
"main": "./lib/index.js",
"standalone": "AutoForm",
"homepage": "https://github.com/insin/react-auto-form",
Expand All @@ -15,7 +15,7 @@
"forms"
],
"dependencies": {
"get-form-data": "^1.2.0"
"get-form-data": "^1.2.1"
},
"peerDependencies": {
"react": ">=0.12.0"
Expand Down

0 comments on commit c9e2221

Please sign in to comment.