When I click on the delete button in the dialog box, a horizontal scroll bar appears on the page


I'm dealing with a table that includes an 'approved' column with three conditions. One of these conditions triggers the appearance of a delete button along with a confirmation dialog box made using Vuetify's dialog component.

The issue arises when the delete button appears, causing a horizontal scroll bar to show up at the bottom of the table. How can I resolve this problem?

<v-data-table
                    :items="allLists"
                    :headers="headers"
                    :search="search"
                    class="mx-3"
            >
                <template v-slot:item.approved="{ item }">
                    <v-container fluid>
                        <v-checkbox v-model="item.checked" id="checkbox"></v-checkbox>
                    </v-container>
                </template>

                <template v-slot:item.action="{ item }">
                    <v-row>
                        <v-btn
                                text
                                dark
                                rounded
                                color="success"
                                v-if="item.checked === true"
                        >
                            <v-img
                                    :src="require('../assets/success.svg')"
                                    v-if="item.checked === true"
                                    max-width="30px"
                            ></v-img>
                        </v-btn>[enter image description here][1]
                        <template
                                v-if="item.checked === false"
                        >
                            <v-row>
                                <v-dialog v-model="dialog" max-width="290">
                                    <template v-slot:activator="{ on }">
                                        <v-row class="mx-3">
                                            <v-btn
                                                    color="error"
                                                    text
                                                    dark
                                                    rounded
                                                    v-on="on"
                                            >
                                                <v-img
                                                        :src="require('../assets/deletenew.svg')"
                                                        max-width="29px"
                                                ></v-img>
                                            </v-btn>
                                        </v-row>
                                    </template>
                                    <v-card>
                                        <v-card-title class="red headline white--text">Confirm Delete</v-card-title>
                                        <br>
                                        <v-card-title style="font-weight: bold; font-size: 16px" class="justify-center">
                                            Are You Sure?
                                        </v-card-title>
                                        <v-card-actions>
                                            <v-btn color="primary"
                                                   class="font-weight-bold"
                                                   text
                                                   @click="dialog = !dialog"
                                            >
                                                No
                                            </v-btn>
                                            <v-spacer></v-spacer>
                                            <v-btn
                                                    color="primary"
                                                    class="font-weight-bold"
                                                    text
                                                    @click="dialog = !dialog"
                                                    v-on:click="del(item.pk)"
                                            >
                                                Yes
                                            </v-btn>
                                        </v-card-actions>
                                    </v-card>
                                </v-dialog>
                            </v-row>
                        </template>

                        <v-btn
                                text
                                dark
                                rounded
                                color="warning"
                                v-if="item.checked == null"
                        >
                            <v-img
                                    :src="require('../assets/warning.svg')"
                                    max-width="29px"
                            ></v-img>
                        </v-btn>
                    </v-row>
                </template>
            </v-data-table>

https://i.sstatic.net/FyorF.png

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

When attempting to retrieve the value of my select element, I encounter difficulty due to a hidden field that only becomes visible when a certain option is selected

I have a dropdown menu with different options, including one labeled "other". When the user selects "other", a hidden text field appears for them to enter a custom value. This functionality works correctly. However, if the user selects any other option and ...

The latest version of Material UI, v4, does not currently support React 18

Looking to incorporate MUI (Material UI) into my website design. Encountering difficulties with installing this library, receiving the error message below: -npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While ...

Use `$$state: {…}` within the request rather than the data

When attempting to send a request with data, I am only getting "f {$$state: {…}}" in the console. $scope.createTask = function () { var req = $http.post('api/insert', { title: $scope.newTitle, description: ...

Retrieval of jQuery remove() method

Essentially, I am utilizing an OnClick function to delete a DIV. Once the OnClick is triggered, it invokes the remove() jQuery function to eliminate the div. Below is my code that implements the removal using remove(): <div id="add"> <button typ ...

How can TypeORM be used to query a ManyToMany relationship with a string array input in order to locate entities in which all specified strings must be present in the related entity's column?

In my application, I have a User entity that is related to a Profile entity in a OneToOne relationship, and the Profile entity has a ManyToMany relationship with a Category entity. // user.entity.ts @Entity() export class User { @PrimaryGeneratedColumn( ...

When communicating with the backend in a React application, the data is not being successfully sent using axios. An error message stating "Unsupported protocol

My current setup involves using Express.js as the backend and setting up a proxy to the backend in the package.json file of my React.js project. Initially, I encountered an error when using the fetch method, so I switched to using Axios to resolve this iss ...

Clearing hoverIntent using jQuery

In my scenario, I have three items identified as X, Y, and Z. The functionality of hovering is controlled by the hoverIntent. When I hover on item X, a tooltip is displayed using the following code: jQuery('.tooltiper').hoverIntent({ ove ...

Unable to render a rectangle with React's canvas context.fillRect

Could anyone help me with drawing a rectangle using React? I'm having trouble getting it to work. I'm confused as to why the code below isn't showing a rectangle on the screen. class DrawingView{ constructor(props) { this.canva ...

Unexpected data output detected in Ajax Json response

I'm having trouble parsing the JSON data to HTML and encountering an undefined value. $.ajax({ type: "GET", url: "http://localhost/rest/api/kkb/detail/?key=39E62227E3294114BE8EADF3B6D2F06E&id=4", dataType: 'jsonp', cross ...

I am having trouble getting the filter functionality to work in my specific situation with AngularJS

I inserted this code snippet within my <li> tag (line 5) but it displayed as blank. | filter: {tabs.tabId: currentTab} To view a demo of my app, visit http://jsfiddle.net/8Ub6n/8/ This is the HTML code: <ul ng-repeat="friend in user"> ...

Troubleshooting: "Go To Definition" Feature in VS Code Fails to Work When Imports are Without Path

I am currently configuring VS Code to enable me to navigate to definitions by cmd+click or right click + Go To Definitions when importing JS components that do not use relative or absolute paths. These components are set up by Webpack to search for any fil ...

Learn how to easily toggle table column text visibility with a simple click

I have a working Angular 9 application where I've implemented a custom table to showcase the data. Upon clicking on a column, it triggers a custom modal dialog. The unique feature of my setup is that multiple dialog modals can be opened simultaneously ...

Exploring Best Practices for Coding in node.js

Method 1: Constructor and Prototype Objects function Database(url) { this.url = url; } Database.prototype.info = function (callback) { http.get(this.url + '/info', callback); }; Method 2: Closures Approach function Database(url) { ...

Tips for updating the color, background, and height of the particle background using react-tsparticles

Is it possible to customize color and background in react-tsparticles? Below is an example of a particle configuration file named particle-config.js const particlesConfig = { background: { color: { value: "#232741", }, posi ...

Using jQuery to update a specific item in a list

My current project involves developing an Image Gallery app. It uses <img> tags within li elements. The code snippet is as follows: var $slideR_wrap = $(".slideRoller_wrapper"); var $slidesRoller = $slideR_wrap.find(".slidesRoller"); var $slideR ...

The $scope in Angular doesn't seem to be working as expected in the callback function, despite using $scope

I'm currently working on converting the JSFiddle found here to AngularJS: http://jsfiddle.net/danlec/nNesx/ Here is my attempt in JSFiddle: http://jsfiddle.net/leighboone/U3pVM/11279/ var onAuthorize = function () { updateLoggedIn(); $scope. ...

Display dynamic content in a div using ajax and add animation effects, along with a "back" button functionality

I am in the process of creating a fantasy NFL web app using bootstrap and jQuery. Initially, I opted for Framework7 due to its user-friendly native app interface but decided to shift towards building a fully responsive page instead. Within my project, the ...

Utilizing Ajax to send IP addresses and obtain location data

Is there a website or webpage that can be used to input a user's IP address and receive their country or location as plain text? Below is a code snippet demonstrating how I attempted to retrieve the user's IP address: I inserted the following c ...

Transform the string response in a websocket message into JSON format

When receiving a websocket message, I often encounter a response in the form of a string like this: odds.1:[{"id":1,"marketType":10,"name":"Double chance","status":"HandedOver","specifiers":"","Outcomes":[]},{"id":2,"marketType":11,"name":"Draw no bet", ...

Encountering an issue with Vue 3 Composition API and Vue Router 4 navigation guards causing errors during implementation

I recently encountered an issue with my Vue-router 4 navigation guard that caused errors related to 'undefined (push)' from the Pinia store when I tried to use router.push('/'). Below is a glimpse of the relevant code snippet: import { ...