time-convertor

Convert time across timezones
git clone http://git.hanabi.in/repos/time-convertor.git
Log | Files | Refs | README | LICENSE

commit 6a40ea0bb4e507715a08fe8a1238866852b9f472
parent ca1428f7243de763b0ac0d656d3d911226693ccb
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Mon, 18 May 2020 18:29:24 +0530

optional clear

Diffstat:
Msrc/comp/autoCompleteText.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/comp/autoCompleteText.js b/src/comp/autoCompleteText.js @@ -4,6 +4,7 @@ import moment from 'moment-timezone'; function AutoCompleteText({ autofocus = false, changeValue, + clearInput, defaultValue = '', id, placeholder, @@ -18,6 +19,7 @@ function AutoCompleteText({ ); function handleChange(event) { const { value: input } = event.target; + if (clearInput) clearInput(undefined); setInputVal(input); let recommendations = []; if (input.length) {