Giter Club home page Giter Club logo

react-validated-input's People

Contributors

jishun avatar kanchenheluo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kanchenheluo

react-validated-input's Issues

Usage examples

Hi Jishun,
When is doValidate called in the Usage example? Also, what does validate={this.state.validation} do? Perhaps some sample data? Ideally usage examples for textarea, password, email, select, radio, checkbox would be great. Thanks mate

Install issue

This looks Awesome! hope I can get it to work with my ES6 Webpack build project

The install went fine: npm install react-validated-input --save

But in my .jsx when I:
import Input from 'react-validated-input'

I get console.log: (it's there in node_modules?!) not seen this before. Thx!

Module not found: Error: Cannot resolve module 'react-validated-input' in /Projects/TrailerShare/ts-client/app/components
resolve module react-validated-input in /Projects/TrailerShare/ts-client/app/components
looking for modules in /Projects/TrailerShare/ts-client/node_modules
resolve 'file' react-validated-input in /Projects/TrailerShare/ts-client/node_modules
resolve file
/Projects/TrailerShare/ts-client/node_modules/react-validated-input is not a file
/Projects/TrailerShare/ts-client/node_modules/react-validated-input.js doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input.jsx doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input.es6 doesn't exist
resolve 'file' or 'directory' /Projects/TrailerShare/ts-client/node_modules/react-validated-input
resolve file
/Projects/TrailerShare/ts-client/node_modules/react-validated-input is not a file
/Projects/TrailerShare/ts-client/node_modules/react-validated-input.js doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input.jsx doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input.es6 doesn't exist
resolve directory
directory default file index
resolve file index in /Projects/TrailerShare/ts-client/node_modules/react-validated-input
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index.js doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index.jsx doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index.es6 doesn't exist
use dist/react-validated-input.js from package.json
resolve 'file' or 'directory' dist/react-validated-input.js in /Projects/TrailerShare/ts-client/node_modules/react-validated-input
resolve file
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js.js doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js.jsx doesn't exist
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js.es6 doesn't exist
resolve directory
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js doesn't exist (directory default file)
/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js/package.json doesn't exist (directory description file)
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input.js]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input.js]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input.jsx]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input.jsx]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input.es6]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input.es6]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index.js]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index.jsx]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/index.es6]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js.js]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js.jsx]
[/Projects/TrailerShare/ts-client/node_modules/react-validated-input/dist/react-validated-input.js.es6]
@ ./app/components/address.jsx 28:27-59

uncontrolled input element

Thanks again for this,

If I render:
<Input type="text" validate={this.state.validation} instance={this.state._addr} propertyKey="street" rules={{presence: true}} >

The field displays the value, but when I delete (backspace) the last remaining character from the field I get:

Warning: A component is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components

Warning: Unknown props

Now getting:

warning.js:44 Warning: Unknown props validate, rules on tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
in input
in span
in div
in ValidatedInput (created by _class)
in div (created by _class)
in div (created by _class)
in div (created by _class)
in _class (created by RouterContext)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.