Solution for modal showing, but not the window


(Jim Kleiber) #1

Hello! I was having trouble with my installation, that sometimes whenever I would click the edit category button or the attach file button in a reply or anything that required a modal, it would only show the modal and not the window above it.

I read another post “Edit Category Button and New Category Button not working” and started to look into my CSS.

What I found was that I created a class:

.hidden {
  display: none;
}

and that it was conflicting with the Discourse .hidden class. When I inspected the Discourse page, I noticed that the modal window had a .hidden class on it as well.

Removing my custom .hidden class code above solved the problem.

I think the same is happening when people integrate with Bootstrap, as Bootstrap has a similar .hidden class to what I created.