HackTJ / live

A massively scalable application for realtime hackathon judging and mentoring.
MIT License
5 stars 2 forks source link

Spreadsheet header styling is incorrect when search & column selection are used together #101

Closed sumanthratna closed 2 years ago

sumanthratna commented 2 years ago

Issue

Screen Shot 2022-02-08 at 11 14 44

Reproduction

  1. search something
  2. unselect a column
  3. remove the search

Solution

instead of programmatically adding hidden attribute using vanilla JS, create a new Alpine.js var selectedColumns, and use x-show="selectedColumns.includes(heading.key)" x-transition

sumanthratna commented 2 years ago

closing b/c haven't implement search yet