From f08de6db35de8a506139cd90b2efa840260ce9a1 Mon Sep 17 00:00:00 2001 From: Kwun Yeung Date: Tue, 2 Jan 2018 15:15:55 +0800 Subject: [PATCH 1/2] fixed issuse with duplicate password fields and input autoCapitalized --- main.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.jsx b/main.jsx index 850947c..0d5cdb7 100644 --- a/main.jsx +++ b/main.jsx @@ -134,13 +134,13 @@ class Field extends Accounts.ui.Field { return mount ? (
- + {/*} */} this.input = ref } - autoCapitalize={ type == 'email' ? 'none' : false } + autoCapitalize={ type == 'email' ? 'none' : undefined } autoCorrect="off" onChange={ onChange } placeholder={ hint } From 06de9ca5358cf381b86316b889d9dad2e648a3ee Mon Sep 17 00:00:00 2001 From: Kwun Yeung Date: Thu, 5 Jul 2018 15:57:31 +0800 Subject: [PATCH 2/2] resolve prop-types --- main.jsx | 16 ++++++++-------- package.js | 2 +- package.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/main.jsx b/main.jsx index 0d5cdb7..310c2cb 100644 --- a/main.jsx +++ b/main.jsx @@ -1,14 +1,7 @@ import React from 'react'; +import PropTypes from 'prop-types'; import { Accounts, STATES } from 'meteor/std:accounts-ui'; -/** - * Form.propTypes = { - * fields: React.PropTypes.object.isRequired, - * buttons: React.PropTypes.object.isRequired, - * error: React.PropTypes.string, - * ready: React.PropTypes.bool - * }; - */ class Form extends Accounts.ui.Form { render() { const { @@ -71,6 +64,13 @@ class Form extends Accounts.ui.Form { } } +Form.propTypes = { + fields: PropTypes.object.isRequired, + buttons: PropTypes.object.isRequired, + error: PropTypes.string, + ready: PropTypes.bool +}; + class Buttons extends Accounts.ui.Buttons { } class Button extends Accounts.ui.Button { diff --git a/package.js b/package.js index 819b3e9..5e1fb8b 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'std:accounts-bootstrap', - version: '1.2.0', + version: '1.2.1', summary: 'Bootstrap UI - Accounts UI for React in Meteor 1.3+', git: 'https://github.com/studiointeract/accounts-bootstrap', documentation: 'README.md' diff --git a/package.json b/package.json index f2adc6d..7ee61fe 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "homepage": "https://github.com/studiointeract/accounts-bootstrap", "dependencies": { - + "prop-types": "^15.6.0" }, "peerDependencies": { "react": ">=0.14.7 || ^15.0.0-rc.2",