Category "javascript"

ReactTooltip.hide doesn't hide tooltip instantly

I'm trying to create a tooltip using react-tooltip with a close button. According to the documentation, I need to use ReactTooltip.hide but it doesn't seem to w

Application Breaks when adding custom component as import

I am having an issue where I have created two components "TaskInputField.js" and "TaskItem.js" and when I import them into the file I want to use them in, the b

Input type time 24 hour format

Too many this type of old questions are already in Stack Overflow, but now I would like to know any new method to fix this problem! <input type="time"&g

Trying to use fetch and pass in mode: no-cors

I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I am using create-react-app and would

Why does JavaScript handle the plus and minus operators between strings and numbers differently?

I don't understand why JavaScript works this way. console.log("1" + 1); console.log("1" - 1); The first line prints 11, and the second prints 0. Why does Jav

SheetJS json_to_sheet renaming headers

I have an array of objects. By default, sheet_to_json uses object keys as headers. However, I need to rename those headers without explicitly modifying my array

Using an imported type in JSDoc @typedef

I'm trying to reduce duplication in specifying my imported types as follows but I'm getting an error /** @typedef {import("../types/util")} util @typedef {util.

how to get firebase use in nextJS getserversideprops

I want to get 'sample' document in Firestore using getServerSideProps if there is signed user. Code below doesn't work. It's result is 'can't read' What should

Disabling Image Smoothing is not working even with CSS and JavaScript

I have a canvas that only draws big pixels, as the game is completely based on boxes. The problem is that on every single image and canvas there is image smooth

Javascript exiting normal execution order

So I will attach my simplified code. So when the page load the debugger follow the expected row order: 27->9->10 When I click on topNewsButton, the execut

Average with the Reduce Method in JavaScript

recently I tried to calculate Average with the Reduce Method In JavaScript​ here is may code var arr = [129, 139, 155, 176]; var result = arr.reduce(fu

Using an imported type in JSDoc @typedef

I'm trying to reduce duplication in specifying my imported types as follows but I'm getting an error /** @typedef {import("../types/util")} util @typedef {util.

How to add animate icon menu dropdown open / closed

I built a dropdown menu with fade animation with the help of stackoverflow users. Everything works beautifully. But now I would like to add an icon to the butto

Is there a way to test markers on MapView using DETOX in a react-native app?

I have a react native app that includes MapView component where we are rendering the markers. Using detox, I want to test the visibility of those markers and al

How to Enable Scroll Bar iside Ant Design Modal Component Body?

I am having a modal with long content. I need to have an internal scroll bar inside the modal but there is no information about that in the documentation <M

React native TypeError: Network request failed with fetch()

I'm using React native for developing an android application. With this fetch request I'm getting the error TypeError: network request failed: fetch('https://p

How can I detect onChange event in TinyMCE custom plugin it?

I'm trying to develop a custom TinyMCE plugin which will load the items for a selectbox list based on the options of another selectbox list. However, I cannot f

Handle event emitter messages sequentially

myEmitter.on('data', handleData). How can I have handleData invoked sequentially and not in parallel ? For example: n data messages arrive grouped very close

Problem while compiling smart contract in VScode ( No response in temrinal )

I have a problem while compiling my first smart contract: Structure of my folder: in Inbox.sol pragma solidity ^0.8.9; contract Inbox { string public mess

Render the detailed page when clicking on a linked item on the sidebar menu

I am working on the sidebar. Currently, I have a few items on my sidebar. When I select an item, it shows a few details on the main area. Actually, I have a lar