When I choose values from the grid, the displayed values become blurred

I am in need of the first image link as per my requirement. There are certain fields that should not be visible in the grid, so I have applied blurring to those fields using CSS. https://i.sstatic.net/rpzRN.jpg The second image link highlights the issue. The blurred fields become visible when I use CTRL + A or select the value with the mouse. https://i.sstatic.net/mX6zX.png

Any assistance would be greatly appreciated!

Answer №1

To prevent the td elements from being selected, you can apply the style user-select: none to them.

Keep in mind that using user-select will require prefixes such as -webkit and -moz.

const app = new Vue({
  el: "#app",
  data: {
    items: [{
      col1: "123",
      col2: "456"
    },{
      col1: "789",
      col2: "012"
    }]
  }
});
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.blur {
  filter: blur(3px);
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.2/vue.min.js"></script>
<div id="app">
  <table>
    <thead>
      <tr>
        <th>Col1</th>
        <th>Col2 (with no-select)</th>
        <th>Col2 (without no-select)</th>
      </tr>
    </thead>
    <tbody>
      <tr v-for="item in items">
        <td>{{ item.col1 }}</td>
        <td class="no-select blur">{{ item.col2 }}</td>
        <td class=" blur">{{ item.col2 }}</td>
      </tr>
    </tbody>
  </table>
</div>

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

Having trouble getting JavaScript to replace tags in HTML

I've been working hard to replace all the shared code in posts on my website, but I'm having trouble getting it to work. I want everything inside <pre><code></code></pre> tags to be colorized using CSS. Here's a sampl ...

The React CSS seems to be functioning properly on Desktop Site, but unfortunately, it does not show up on mobile devices using Chrome, Safari

As a newcomer to ReactJS, I welcome any advice that can be provided I've developed and deployed my ReactJS app on Heroku It's working perfectly on desktop browsers (Chrome, Firefox, Safari) but not displaying correctly on mobile (iPhone 7) and t ...

Tips for customizing the border design of a Semantic UI dropdown menu:

Utilizing Semantic UI for the dropdown feature, only the dropdown and transition components of Semantic have been incorporated. The challenge lies in altering the border of items within the Dropdown list where besides the first element, the remaining eleme ...

The issue of background-attachment: fixed not functioning properly on Safari

Currently, I have the following code implemented on an element that extends 100% of the browser: #section_white { background-attachment:fixed; background-image:url(image_url_here.jpg); background-position:100% 100%; background-repeat:no-repeat no- ...

Switching the typeface within the content data

Recently, I incorporated this code: <div data-content="Reach" class="main-image"> along with the following CSS styling: .main-image:before { content: attr(data-content); I am now wondering if there is a method to adjust the font size and ...

What is preventing my CSS variables from functioning in my Vue component that is utilizing SASS?

Currently, I am working with sass and vue version-3. Within one of my components, the following code is present: HelloWorld.vue : <template> <div class="greetings"> <h1>{{ msg }}</h1> <h3> You’ve succe ...

Discovering a hidden DIV beneath other DIVs without disrupting their visibility - a step-by-step guide

I have created four separate DIVs that divide the screen equally into quarters. Additionally, there is a full-screen DIV designated for canvas. My goal is to ensure that these DIVs do not overlap each other - meaning if a user clicks on a link within one ...

What is the best way to create an input field along with a span element using the :before pseudo class?

My first question on StackOverflow is regarding adding a pseudo-class before an input type button for animation (http://codepen.io/anon/pen/emodKG). I understand that it's not possible to directly add something before an input, so I attempted to inclu ...

What is the best technique for creating a preloader that can seamlessly fill the background of a vector image?

I am looking for guidance on creating a CSS3 preloader using a vector image. My goal is to have the logo start off transparent with only the border visible, and as the loading occurs, fill in from bottom to top with the background color. Thank you to ever ...

Are Flexbox CSS alignment properties potentially ineffective in certain situations?

During the development of a project, I encountered an issue with a search box that was supposed to display a string of images from my database. Unfortunately, due to some trouble with Flexbox CSS, I ended up facing two main problems: A) it extending beyond ...

Create a grid layout using Bootstrap and Vue that features responsive columns which resemble a snake pattern. The alternate rows should be displayed in reverse order for a visually dynamic

Having a bit of a tricky situation here, hoping someone can provide some insight. I am currently working on a project using Laravel, Vue, and Bootstrap where I need to loop through some objects and display them in a specific pattern. 1 2 3 6 5 4 7 8 9 Th ...

Animating each individual element within the v-for loop in Vue.JS

Recently, I developed a basic to-do app using VueJS. Additionally, I integrated vue2-animate, which is a Vue.js 2.0 adaptation of Animate.css used for Vue's built-in transitions. The animation feature that adds an element functions correctly. However ...

Collaborate on global functions across the Quasar ecosystem and beyond, including Vue3

Is it plausible to utilize this method for sharing functionality (not data, which is handled by stores) in a Quasar and Vue3 application? // boot/generic_stuff.js import {boot} from 'quasar/wrappers' const function_list = { /* content goes here ...

Tips for aligning a div within a flexbox to the bottom position

I'm having trouble aligning the div at the bottom of the flex box. I attempted to use align-content: flex-end; but it didn't work. Is there a way to keep the <.div class="parameters"> at the bottom of the row? Especially when the ...

The footer lies at the bottom of the page, demarcated by

I'm struggling to position the footer at the bottom of the page with a horizontal line just above it. Despite trying various resources, I can't seem to get the footer to stay at the bottom. I'm currently using a blog template as the basis fo ...

Placing CSS elements in an absolute position over dynamic heights

I am facing a challenge with positioning two divs inside a parent div. My goal is to have the first div positioned absolutely at bottom:0 of the parent div, while the second div should always be on top of the first one. The issue arises because the height ...

Apply the CSS rule specifically for desktop screens, excluding mobile and tablet devices

My website has a logo in the header that appears too small on computer screens. I came across a code snippet that allows me to increase the size of the logo, but I only want this change to be applied on computers and not on mobile or tablet devices. The co ...

TokenMismatchException is encountered while making an Ajax POST request in Vue-Resource

Just a heads up, I'm working with the Laravel framework. I've already checked similar questions on SO, but couldn't find a solution that worked for me... Even though I believe I've set my CSRF token correctly, it's still not funct ...

Leveraging cookies in axios and Vue applications

I have successfully set up a Node.js express server that connects to Salesforce.com using the SOAP interface provided by 'jsforce'. To handle authorization, I utilize session cookies with the help of the 'express-session' package. The s ...

Getting started with Nuxt Content: Incorporating markdown content into a static page

Exploring Challenges In the process of constructing a blog, where the primary source of content is derived from markdown files and implemented using NuxtJS Content. For further insight, my project can be viewed on Github (or the live site at this link). ...