time-convertor

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

commit b1eebc222ad82218c565be2b18a19534dffa19b8
parent 077a88ffbc6f54a671cbfe68c1e5129b80231ae2
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Mon, 18 May 2020 07:18:20 +0530

show all if search empty

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

diff --git a/src/comp/autoCompleteText.js b/src/comp/autoCompleteText.js @@ -21,7 +21,7 @@ function AutoCompleteText({ defaultValue = '', changeValue }) { val.toLowerCase().includes(input.toLowerCase()) ), ]; - } + } else recommendations = [...suggestions]; setSuggestions(Array.from(new Set([...recommendations]))); } @@ -32,7 +32,7 @@ function AutoCompleteText({ defaultValue = '', changeValue }) { } return ( - <h2 aria-level="2" id="converted-time-lbl"> + <h4 aria-level="4" id="converted-time-lbl"> <input role="searchbox" autoFocus @@ -66,7 +66,7 @@ function AutoCompleteText({ defaultValue = '', changeValue }) { </ul> </h6> </div> - </h2> + </h4> ); }