Skip to content

Prevent screen transition if any state changed.

License

Notifications You must be signed in to change notification settings

Leko/in-progress.js

Repository files navigation


in-progress.js

CircleCI Codecov npm version npm version

Prevent screen transition if any state changed.

Getting started

npm install in-progress
bower install in-progress

Usage

import { FormValueDetector } from 'in-progress'

const formElement = document.querySelector('#some-form')
const detector = new FormValueDetector(formElement)
detector.observe()

View live demo