tsawler / bookings-app

The repository for Building Modern Web Applications with Go.
https://www.udemy.com/course/building-modern-web-applications-with-go/?referralCode=0415FB906223F10C6800
56 stars 33 forks source link

Rooms dropdown never drops down #2

Closed sherwoodzern closed 2 years ago

sherwoodzern commented 2 years ago

Hello Trevor,

I'm working on the bookings application. I'm doing some preliminary testing and I can never get the Rooms drop down menu to ever open. I've walked through code, compared to yours, and even went through the bootstrap documentation. I'm at a loss right now. Do you have any thoughts as to what would be preventing the menu from working?

tsawler commented 2 years ago

If you could give me some code to look at, that would be helpful. Without that, I would just be guessing.

-- Trevor On Oct 20, 2021, 7:02 PM -0300, sherwoodzern @.***>, wrote:

Hello Trevor, I'm working on the bookings application. I'm doing some preliminary testing and I can never get the Rooms drop down menu to ever open. I've walked through code, compared to yours, and even went through the bootstrap documentation. I'm at a loss right now. Do you have any thoughts as to what would be preventing the menu from working? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sherwoodzern commented 2 years ago

I've pasted my base.layout.tmpl file below:

{{define "base"}} <!doctype html>

Document {{block "css" .}} {{end}} {{block "content" .}} {{end}}
left
center
right
{{block "js" .}} {{end}}

{{end}}

cybernamix commented 2 years ago

You may want to check this line here :

<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-ds-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

Maybe a typo and "data-ds-toggle" should be "data-bs-toggle" ?

sherwoodzern commented 2 years ago

Thank you for catching the typo. Unfortunately, that didn't solve the issue. It's really hard to debug, because when I select "Rooms" I don't get any kind of js showing up in the web developer tools debugger. It's as if I'm not clicking the Rooms tab at all. Oh well, I'll keep digging.

tsawler commented 2 years ago

Hello:

If you would be so kind as to post this on the Q&A for the course, that would be most helpful. I don't check Github questions very often, and I don't get notified when they are posted. Also, the Q&A section is helpful for other students...

Thanks.