Commit f3d7bc3c authored by Muhammadali's avatar Muhammadali

update-

parent 6867ede9
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.0.0", "version": "3.0.1",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -10,31 +10,31 @@ const CallHistoryInputDropdown = ({ ...@@ -10,31 +10,31 @@ const CallHistoryInputDropdown = ({
numberSelectHistory, numberSelectHistory,
setDefaultHistoryNumberHistory, setDefaultHistoryNumberHistory,
}) => { }) => {
// const [modal, setModal] = useState(false); const [modal, setModal] = useState(false);
// var elem = document.getElementById('data'); var elem = document.getElementById('data');
// const selectFuncInset = (e) => { const selectFuncInset = (e) => {
// selectFunc(e); selectFunc(e);
// setModal(false); setModal(false);
// }; };
// useEffect(() => { useEffect(() => {
// if (call_history.length) { if (call_history.length) {
// if (numberSelectHistory == 0 || numberSelectHistory == 'zero') { if (numberSelectHistory == 0 || numberSelectHistory == 'zero') {
// elem.scrollTop = elem.scrollHeight; elem.scrollTop = elem.scrollHeight;
// } else { } else {
// elem.scrollTop = elem.scrollHeight - numberSelectHistory * 50; elem.scrollTop = elem.scrollHeight - numberSelectHistory * 50;
// } }
// } }
// }, [numberSelectHistory]); }, [numberSelectHistory]);
// useEffect(() => { useEffect(() => {
// if (numberSelectHistory > 0) { if (numberSelectHistory > 0) {
// setModal(true); setModal(true);
// } else if (numberSelectHistory == 0 || numberSelectHistory == 'zero') { } else if (numberSelectHistory == 0 || numberSelectHistory == 'zero') {
// setModal(false); setModal(false);
// } }
// }, [numberSelectHistory]); }, [numberSelectHistory]);
return ( return (
<Block> <Block>
......
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