Commit d1b5a0dc authored by Muhammadali's avatar Muhammadali

update-

parent 432fa227
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.7.0", "version": "2.7.1",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -16,6 +16,11 @@ const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => { ...@@ -16,6 +16,11 @@ const CallHistoryInputDropdown = ({ inputValue, call_history, selectFunc }) => {
selectFunc(e); selectFunc(e);
setModal(false); setModal(false);
}; };
useEffect(() => {
}, [inputValue]);
return ( return (
<Block> <Block>
<Input <Input
......
...@@ -24,6 +24,7 @@ const ModalPhoneNumpad = ({ ...@@ -24,6 +24,7 @@ const ModalPhoneNumpad = ({
const [inputValue, setInputValue] = useState(''); const [inputValue, setInputValue] = useState('');
const [call_history, setCall_history] = useState([]); const [call_history, setCall_history] = useState([]);
const [numberSelectHistory, setNumberSelectHistory] = useState(0); const [numberSelectHistory, setNumberSelectHistory] = useState(0);
useEffect(() => { useEffect(() => {
let currentCalls = localStorage.getItem('callhistory') let currentCalls = localStorage.getItem('callhistory')
? JSON.parse(localStorage.getItem('callhistory')) ? JSON.parse(localStorage.getItem('callhistory'))
...@@ -196,6 +197,9 @@ const ModalPhoneNumpad = ({ ...@@ -196,6 +197,9 @@ const ModalPhoneNumpad = ({
const selectFunc = (e) => { const selectFunc = (e) => {
setInputValue(e); setInputValue(e);
}; };
console.log('numberSelectHistory: ', numberSelectHistory);
return ( return (
<ModalPhoneNumpadStyle <ModalPhoneNumpadStyle
position={position} position={position}
...@@ -203,7 +207,6 @@ const ModalPhoneNumpad = ({ ...@@ -203,7 +207,6 @@ const ModalPhoneNumpad = ({
variant={variant} variant={variant}
onClick={(e) => e.stopPropagation()}> onClick={(e) => e.stopPropagation()}>
<ModalPhoneNumpadStyle.InputArea> <ModalPhoneNumpadStyle.InputArea>
{/* <Input disabled type='text' value={inputValue} /> */}
<CallHistoryInputDropdown <CallHistoryInputDropdown
call_history={call_history} call_history={call_history}
inputValue={inputValue} inputValue={inputValue}
......
...@@ -13,7 +13,7 @@ const ModalPhoneNumpadStyle = styled.div` ...@@ -13,7 +13,7 @@ const ModalPhoneNumpadStyle = styled.div`
position: fixed; position: fixed;
bottom: 120px; bottom: 120px;
transition: 0.2s !important; transition: 0.2s !important;
z-index: 999; z-index: 9999;
${({ hiddenValue, position, variant }) => ${({ hiddenValue, position, variant }) =>
hiddenValue hiddenValue
? boxDialerWidjetPosition[variant][position].numpad.hidden ? boxDialerWidjetPosition[variant][position].numpad.hidden
......
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