Skip to content

Instantly share code, notes, and snippets.

View Amareis's full-sized avatar

Иван Плесских Amareis

View GitHub Profile
@Amareis
Amareis / MaskedInput.jsx
Last active December 6, 2017 11:58 — forked from prontiol/MaskedInput.tsx
react-text-mask focus workaround
import React from 'react'
import TextMask from 'react-text-mask'
export default class CustomTextMask extends TextMask {
render() {
const {value, ...props} = this.props
return (
<input
{...props}
onFocus={this.onFocus}