Unusual occurrences in ngx-datatable (Strange row backgrounds and blurry fonts)

Attached are images for reference of this issue.

I have utilized ngx-datatable to showcase data. Upon continuous hovering over visible rows, three scenarios occur:

  1. The background of one row turns black;
  2. The text of one row becomes pixelated;
  3. The text of another row is not visible;

If anyone has experienced this problem before, please lend a hand. Below is the code snippet:

HTML Code:

The attribute I removed: columnMode="force"

<ngx-datatable
  class="material"
  [rows]="rows"
  [rowHeight]="80"
  [scrollbarV]="true"
  [scrollbarH]="true">
    <ngx-datatable-column [width]="30" name="Sr#" prop="sr"></ngx-datatable-column>
    <ngx-datatable-column [width]="350" name="KPIs" prop="kpis"></ngx-datatable-column>
    ...
</ngx-datatable>

TS File:

export class CompObjectivesComponent implements OnInit {

  rows = [];

  constructor() {
    this.fetch((data) => {
      this.rows = data;
      console.log(this.rows)
    });
  }

  ngOnInit() {}

  fetch(cb) {
    const req = new XMLHttpRequest();
    req.open('GET', `assets/100k.json`);

    req.onload = () => {
      cb(JSON.parse(req.response));
    };

    req.send();
  }

  addRow() {
    const obj = {
      "id": 0.0,
      "name": "Immad Hamid",
      "gender": "male",
      ...
    }

    this.rows.push(obj);
    console.log(this.rows);
  }

}

Issues Encountered:

Case One:(Both issues happened simultaneously): https://i.sstatic.net/fCi01.png

Case Two: https://i.sstatic.net/apnL0.png

Case Three: Issue couldn't be reproduced...

Answer №1

After struggling to find a solution using Angular 5, I made the decision to update my project to Angular 7.2.3 and upgrade all packages. To my relief, this issue was finally resolved without any additional effort.

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

problems with using includes() in the array every() method

Hi everyone, I've been spending quite a bit of time trying to find a solution to this problem and I'm hoping someone can help me out. The issue at hand is that I have 2 arrays - one containing multiple words from an address and another built wit ...

Tips for styling custom buttons within the active editor popup of tinyMCE using CSS

Looking to enhance my tinyMCE active editor popup with custom CSS. Check out the screenshot provided for reference https://i.sstatic.net/vdVDF.png. Below you can find the code snippet used as a reference: tinymce.activeEditor.windowManager.open({ tit ...

Controller property not being updated by directive

I have developed a custom directive to identify when the enter key is pressed within a text box. Here's the implementation of the directive: import { BookmarkService } from "../services/bookmarkService"; import { qlik, QlikBookmarkInfo } from "../qli ...

Our website features a dynamic functionality where users can select from two dropdown lists with identical values. Upon selecting multiple values from the first dropdown, the corresponding values in

When selecting multiple values from the first dropdown list, the second dropdown list will automatically have the same value selected as the first dropdown. ...

The getJSON function callback is not functioning as expected

I'm new to working with JSON objects and sending them to the browser. I'm having trouble with the callback function not executing properly. I don't see anything in the console. $('#id').change(function(){ $.getJSON('ajax. ...

Increase performance by minimizing unnecessary component re-renders in Next.js using memoization

I am currently exploring the behavior of React within Next.js. I have an index.js page that displays one component Homecard three times and a button that increments a value. Each time I click on the button, all Homecard components are re-rendered. index. ...

Organize and eliminate unnecessary imports in tsx and ts files using Visual Studio

Despite the trend among my colleagues to switch to Visual Studio Code for front end development, I stand by my preference for using Visual Studio as my single IDE. One feature that I really miss is Visual Studio Code Organize imports. How can I remove unu ...

Trigger/cease cron job with the click of a button within a Node.js Express application

I have been working on a project that involves starting and stopping a cron scheduler when a user interacts with a button on the front end. Essentially, clicking the start button initiates the cron job, while clicking the stop button halts the timer. It&ap ...

Can a default value be established for an Input component in specific Angular 17 scenarios?

It appears that setting a default value for an @Input in the given scenario is posing a challenge: bindToComponentInputs is enabled in the router module configuration The input value is not included in the URL as a query parameter The parent component neg ...

Rendering in ThreeJS Causes IE11 to Crash

I encountered a peculiar issue with Internet Explorer 11 while working on WebGL programming. Everything was functioning smoothly in all browsers until, out of the blue, IE started crashing when altering the positions of 4 meshes, without pointing to any sp ...

Modifying worldwide variables within an ajax request

After spending considerable time attempting to achieve the desired outcome, I am faced with a challenge. My goal is to append the object from the initial ajax call after the second ajax call. However, it appears that the for loop is altering the value to ...

Error: Unable to locate module: 'material-ui/styles/colors'

I encountered an issue with the code below, as it failed to compile: import React from 'react'; import { AppBar, Toolbar } from 'material-ui'; import { Typography } from 'material-ui'; import { MuiThemeProvider, createMuiThem ...

Retrieve the contents of a nearby text file and store them in a variable

I've run into a frustrating issue that I just can't seem to solve. My goal is simple - fetch a local text file and store its contents in a variable. I've tried using different methods like the fetch API, $.get, and Ajax, but no matter what I ...

Transforming a Typescript object into properly formatted JSON data

UPDATE3: This is what I achieved: https://i.sstatic.net/noAlU.png Here's the code I used to retrieve that data from the backend: private extractTrains(res: Response){ let body = res.json(); let trains = body['List of vehicles' ...

Unable to change the visibility of blockquotes using jquery

Currently, I am delving into the world of basic JQuery functions. My main focus right now is figuring out how to display the active blockquote while keeping the others closed or closing them. Essentially, creating a toggle effect where only one blockquote ...

Navigating through an object's keys to access specific properties of another object in TypeScript

Here is the code snippet provided. You can find the full code here interface DataInterface { a: string[]; b: string[]; c: number[]; d: number[]; e: boolean[]; x: string y: number } const dataObject: DataInterface = { "a": [ ...

The outcome of a Wordpress AJAX submission redirects to the admin-ajax.php file rather than appearing in the designated content

I've encountered an issue with the AJAX handler in WordPress. Here is the form that's causing trouble: form action="<?php echo site_url() ?>/wp-admin/admin-ajax.php" method="POST" id="filter" name="filter"> <input type="h ...

Accurate linking to the interface while retrieving information from a specified URL

Just started with Angular and attempting to assign the returned json data to my interface, but it's not working as expected. Check out the code I'm using below: Stackblitz Json URL ...

Design a logo to serve as the main button on the navigation bar of the

I've been experimenting with adding a logo instead of the 'Home' text in my navigation bar, but I'm not sure where to implement it. Should I add it within #nav or separately? Also, I want the nav bar to stay fixed without overlapping on ...

Add or update subelements, or add the entire document to the collection, based on the presence of the main element

In the event that data is sent from a form, the first step is to verify if a document with the same title already exists in the collection. If it does not, then the data should be inserted. Otherwise, only a portion of the data will be inserted to preven ...