From c03925d9b95a6c468f1081c3b7912deae6976bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20L=C3=B8kke=20Madsen?= Date: Thu, 9 Jun 2016 13:55:33 +0200 Subject: [PATCH] Add react-autofill --- main.jsx | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main.jsx b/main.jsx index a6d6e57..8fc102b 100644 --- a/main.jsx +++ b/main.jsx @@ -1,6 +1,7 @@ import React from 'react'; import { _ } from 'meteor/underscore'; import { Accounts, STATES } from 'meteor/std:accounts-ui'; +import autofill from 'react-autofill'; /** * Form.propTypes = { @@ -187,7 +188,7 @@ class FormMessage extends Accounts.ui.FormMessage {} // requests altering how that works are welcome. // Alter provided default unstyled UI. -Accounts.ui.Form = Form; +Accounts.ui.Form = autofill(Form); Accounts.ui.Buttons = Buttons; Accounts.ui.Button = Button; Accounts.ui.Fields = Fields; diff --git a/package.json b/package.json index 60c185f..25cb114 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "homepage": "https://github.com/studiointeract/accounts-semantic", "dependencies": { "react": ">=0.14.7 || ^15.0.0-rc.2", + "react-autofill": "^1.1.2", "react-dom": ">=0.14.7 || ^15.0.0-rc.2", "tracker-component": ">=1.3.13" }