Unverified Commit 434a7969 authored by Ridwan Amode's avatar Ridwan Amode Committed by GitHub
Browse files

hide placeholder on region field focus (#204)

* code tidyup

* hide placeholder on region field focus

* improve code based on PR review
parent df9956a8
Pipeline #45456 passed with stages
in 5 minutes and 57 seconds
......@@ -12,6 +12,11 @@
&::placeholder {
color: $grey;
}
&:focus {
&::placeholder {
color: transparent;
}
}
}
.chrLocationView {
......
......@@ -30,12 +30,9 @@ const ZmenuController = (props: Props) => {
const [zmenus, setZmenus] = useState<StateZmenu>({});
useEffect(() => {
const subscriptionHandler = (payload: ZmenuIncomingPayload) =>
handleBpaneEvent(payload);
const subscription = browserMessagingService.subscribe(
'bpane-zmenu',
subscriptionHandler
handleBpaneEvent
);
return () => subscription.unsubscribe();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment