Skip to content
Advertisement

Tag: web-frontend

Why my states are not resetting my input to an empty string?

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

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

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

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

Advertisement