I´m creating a simple login page, but i can´t make those two inputs email, passwordturn blank again when users introduce correctly theirs login info. They are resetting correctly all the others states, except these two setEmail(“”),setPassword(“”). I´m using the MUI library. Here is where i used the states. export default Login ) } I tried call the setEmail and setPassword
Tag: web-frontend
Dynamically change ChartJS Line Chart using Jquery
I’m receiving 3 arrays from server as a response and I’m trying to create a line chart using ChartJS. The line chart turns out to be fine when I feed in the static values but it doesn’t reflect the changes when new data is passed from the server. The arrays after being populated by server response looks like this: When
How do I apply scroll bar on div?
I am trying to show the scrollbar beside the items in div but could not do it. This is my code. I tried to add style={{overflowY: “scroll”}} in the div, but it is showing the scroll bar against each item, I want a singe scroll bar for every item in the div. Like this: Answer You would need to apply
Splitting an Ordered List into two columns
So I have been trying to split my ordered list, which contains skill names, into two columns, but the columns are not on the equal level. I tried to fix it by adding padding and margins as such, but it doesn’t work. Here’s my code – The Output – Contains output of given code snippet as per my website Sorry
How to announce new content after ‘Show more’ button is clicked?
I have been trying to add VO support in an area that loads some additional content after user clicks Show more button (refer the screenshots attached). Required behavior: I need the VO to announce the info about additionally loaded elements, something like “What is a cookie? and 11 more items”. Tried: Method-1: used aria-live=”polite” aria-relevant=”additions” behavior: announces “What is a
How to set the state when radio button is by default checked?
You see here, the first radio button defaultChecked={index === 0} is by default checked. I am storing the mapped variant object when it’s changed.onChange. how do I store the value of variant when user doesn’t change anything and just press add item? I can’t set the state inside .map it causes render issues. Answer If you are using checkbox and
Vue & conditional rendering with template tag
I am trying to follow documentation: https://v2.vuejs.org/v2/guide/conditional.html But for some reason my template is not working as expected, as soon as I put <template v-if=”variable”> vue fails to render anything. Any advice? Snippets that demonstrate problem: https://jsfiddle.net/o2tL2ems/1/ Answer There is a thing to know about vue.js, Peter pointed it out in a comment. Template cannot be a root element and