on master help sign in
fix: allow til to be deleted, but immediately add it on insert
ceb0caeMatt Condon (shrugs)
src/form/Inputs.js+2−2
@@ -52,7 +52,7 @@ export function TicketInput({ name, ...rest }) {
52 <AccessoryIcon.Success />
52 <AccessoryIcon.Success />
53 ) : null
53 ) : null
54 }
54 }
55− config={{ format: formatPat }}
55+ config={{ parse: formatPat }}
56 mono
56 mono
57 {...rest}
57 {...rest}
58 />
58 />
@@ -125,7 +125,7 @@ export function PointInput({ name, size = 4, ...rest }) {
125 />
125 />
126 ) : null
126 ) : null
127 }
127 }
128− config={{ format: formatPat }}
128+ config={{ parse: formatPat }}
129 mono
129 mono
130 {...rest}
130 {...rest}
131 />
131 />
src/form/formatters.js+1−1
@@ -3,7 +3,7 @@ import { compose } from 'lib/lib';
3export const buildFormatter = (formatters = []) => compose(...formatters);
3export const buildFormatter = (formatters = []) => compose(...formatters);
4
4
5export const prependSig = s => {
5export const prependSig = s => {
6− if (!s || s.length <= 1) {
6+ if (!s || s.length === 0) {
7 return s || '';
7 return s || '';
8 }
8 }
9
9