Column and row count is transposed when creating tables from the Content Editor
Summary
When creating a table using the Content Editor in the Wiki, the UI for selecting the columns and rows does not match the output. The row and column counts are transposed.
Steps to reproduce
- Edit a Wiki page using the Content Editor
- Insert a table
- Select a table with dramatically different proportions, like 7x2.
- Notice the UI implies that this is 7 columns x 2 rows
- Create the table
- Observe that the table is generated with 2 columns and 7 rows
Example Project
What is the current bug behavior?
The rows and columns are reversed from the expectations set by the popover UI
What is the expected correct behavior?
The UI should give an accurate preview of the table output
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)