Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

availity-reactstrap-validation-safe

mrsarm2.6kMIT2.6.1

Form validation helpers for reactstrap

forms, validation, bootstrap, react, component, components, react-component, availity, ui

readme

availity-reactstrap-validation-safe

Easy to use React validation components compatible for reactstrap.

Forked version of the original project Availity/availity-reactstrap-validation, with the patch provided here that solves this annoying issue.

Installation

Install availity-reactstrap-validation-safe via NPM

npm install --save availity-reactstrap-validation-safe

If applicable, install a Promise polyfill. For example:

npm install es6-promise --save

The polyfill can be applied into your web application by using tools like Webpack or Babel.

Import the components you need, example:

import { AvField } from 'availity-reactstrap-validation-safe';

Development

Install dependencies:

npm install

Run examples at http://localhost:8080/ with Webpack dev server:

npm start

Run tests:

npm test

Run tests & coverage report:

npm run test:coverage

Watch tests:

npm run test:watch

Disclaimer

Open source software components distributed or made available in the Availity Materials are licensed to Company under the terms of the applicable open source license agreements, which may be found in text files included in the Availity Materials.

LICENSE MIT

changelog

2.6.1 (2019-11-21)

Bug Fixes

  • correct Checkbox element (b5b50bb)

2.6.0 (2019-07-16)

Bug Fixes

  • fix step validator for exponent (a5911d9)

2.5.4 (2019-06-10)

Bug Fixes

  • fixed onChange callback error with checkbox group (7197dcd)

2.5.3 (2019-05-16)

Code Refactoring

  • replaced moment with dayjs (f5a9ffa)

BREAKING CHANGES

  • moment has been replaced

2.5.2 (2019-04-26)

Bug Fixes

  • checkbox default value was not being accepted properly (8e4227c)
  • AvInput: define tags (ea10a72)

Features

  • Switch: make AvField support type=switch (4bca2fe)

2.5.1 (2019-02-28)

Bug Fixes

Features

  • Switch: make AvField support type=switch (4bca2fe)

2.5.0 (2018-12-28)

Features

2.4.0 (2018-12-21)

Bug Fixes

  • AvCheckbox: get required attribute from group (908de00)
  • AvCheckboxGroup: set custom validity on inputs (9547adc)

Features

  • AvCheckboxGroup: add support for checkbox groups (f9b1870)

2.3.3 (2018-10-18)

Bug Fixes

2.3.2 (2018-10-16)

Bug Fixes

  • AvRadioGroup: allow falsey default values (d839973)

2.3.1 (2018-10-16)

Bug Fixes

  • AvRadio: apply readOnly and disabled from AvForm (3d50b13)

2.3.0 (2018-10-10)

Features

  • validations: add enabled property to validation (#97) (d636c0f)

2.2.4 (2018-10-09)

Bug Fixes

  • AvBaseInput: register after update when name changes (8b0bc1f)

2.2.3 (2018-10-08)

Bug Fixes

  • AvRadioGroup: validation -> validations (4af0568)

2.2.2 (2018-10-08)

Bug Fixes

  • AvRadioGroup: check validation for required value (e5336d6)

2.2.0 (2018-09-27)

Features

  • CustomInput: add support for custom checkboxes and radios (19cd51f)

2.1.2 (2018-09-18)

Bug Fixes

  • AvForm: don't pass beforeSubmitValidation down (6e491c8)
  • AvInputContainer: fix input name change (82a5e47)

2.1.1 (2018-09-17)

Bug Fixes

  • AvForm: don't pass beforeSubmitValidation down (6e491c8)

2.1.0 (2018-09-17)

Features

  • beforeSubmitValidation: add beforeSubmitValidation handler (74fd4ca)

2.0.7 (2018-09-07)

Bug Fixes

  • AvInput: get ref for custom tags (1f32c14)

2.0.6 (2018-08-15)

Bug Fixes

  • AvBaseInput: fix form level disabled and readonly (0b60900)

2.0.5 (2018-08-14)

Bug Fixes

  • AvForm: ensure error has changed before triggering setState (106ad8e)

2.0.4 (2018-07-25)

Bug Fixes

  • AvRadioGroup: set h-auto on form-control (b16c40f)

2.0.3 (2018-07-25)

Bug Fixes

  • AvRadioGroup: use spacing util instead of form-group (d75ef87)

2.0.2 (2018-03-30)

Bug Fixes

  • AvBaseInput: undefined badInput should not trigger error state (aa22bb5)

2.0.1 (2018-03-30)

Bug Fixes

  • AvBaseInput: fix badInput check not working in IE (bcdfb32)

2.0.0 (2018-03-26)

Bug Fixes

  • AvRadioGroup: fix issue with custom error message (a76c8f7)

2.0.0-beta.3 (2018-03-22)

Bug Fixes

  • AvForm: trigger updates for middle components (3b76981)

2.0.0-beta.2 (2018-03-22)

Bug Fixes

  • AvField: trigger updates for middle components (9e49d5e)

2.0.0-beta.1 (2018-03-22)

Bug Fixes

  • context: expose more functions on context (d18c677)

2.0.0-beta (2018-03-21)

Bug Fixes

  • project: use callbacks to propagate changes (c5d5163)

2.0.0-alpha.2 (2018-02-02)

Bug Fixes

2.0.0-alpha.1 (2017-12-11)

Bug Fixes

  • Date: error message for min/max with date (6020830)
  • Select: make select multiple work in browsers (#45) (59fc2db), closes #41

Features

  • lodash: optimize lodash loading for production build. (#46) (e3f6014)

2.0.0-alpha.0 (2017-10-11)

Bug Fixes

Features

BREAKING CHANGES

  • This now depends on reactstrap v5 which in-turn depends on bootstrap v4-beta
  • now requires users to bring their own polyfill if needed.

1.4.3 (2017-06-12)

1.4.2 (2017-06-12)

1.4.1 (2017-01-13)

1.4.0 (2017-01-10)

1.3.4 (2016-12-21)

1.3.3 (2016-11-21)

Bug Fixes

  • events: fix events not triggering (e8707dc)

1.3.2 (2016-11-04)

Bug Fixes

  • build: fix generated lib for IE<=10 (75278b6)

1.3.1 (2016-11-03)

Bug Fixes

  • util: fix input type checker not workingin IE (fb974e2)

1.3.0 (2016-10-13)

Bug Fixes

  • checkboxes: ability to un/check checkboxes and defaults (7970615)

1.2.7 (2016-10-10)

Bug Fixes

  • checkbox: set true/false value (17a2673)

1.2.6 (2016-10-03)

Bug Fixes

  • unregister: clear input states when component unregisters (24f7801)

1.2.5 (2016-10-03)

Bug Fixes

  • use value as default if present (e45ef08)

1.2.4 (2016-10-03)

1.2.3 (2016-09-30)

1.2.2 (2016-09-28)

Bug Fixes

  • update: fix potential update loop (c2d0be9)

1.2.1 (2016-09-28)

1.2.0 (2016-09-28)

1.1.1 (2016-09-23)

Bug Fixes

  • validation: fix new logic (9fae3a3)

1.1.0 (2016-09-16)

1.0.4 (2016-09-09)

Bug Fixes

  • util: Add back client feat type checker (b1d7da0)

1.0.3 (2016-08-26)

Bug Fixes

  • badInput: trigger validate on bad input (d132060)