on master help sign in
fix: allow til to be deleted, but immediately add it on insert
commitceb0cae5aab7a37271eb9625f28f1c14aa799b58 authorMatt Condon (shrugs) <mattgcondon@gmail.com> dateMon 12 Aug 2019, 16:42 (7 years ago) parentfc0bf50
2 files changed+3−3
src/form/Inputs.js+2−2 src/form/formatters.js+1−1
src/form/Inputs.js+2−2
@@ -52,7 +52,7 @@ export function TicketInput({ name, ...rest }) {
5252 <AccessoryIcon.Success />
5353 ) : null
5454 }
55− config={{ format: formatPat }}
55+ config={{ parse: formatPat }}
5656 mono
5757 {...rest}
5858 />
@@ -125,7 +125,7 @@ export function PointInput({ name, size = 4, ...rest }) {
125125 />
126126 ) : null
127127 }
128− config={{ format: formatPat }}
128+ config={{ parse: formatPat }}
129129 mono
130130 {...rest}
131131 />
src/form/formatters.js+1−1
@@ -3,7 +3,7 @@ import { compose } from 'lib/lib';
33export const buildFormatter = (formatters = []) => compose(...formatters);
44
55export const prependSig = s => {
6− if (!s || s.length <= 1) {
6+ if (!s || s.length === 0) {
77 return s || '';
88 }
99