My header dropdown works smoothly in Chrome, but I encounter issues with Firefox. Although the dropdown appears when clicked, I am unable to interact with the forms inside. Furthermore, clicking on the dropdown causes it to close immediately.
HTML
<div class="dropdown" >
<a id="welcome_dropdown_toggle" class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
<ul id="welcome_page_dropdown" class="dropdown-menu dropdown-nav pull-right " >
<%= form_for(:user, url: session_path(:user), :html => {:class => 'form-group login-name', :role => 'form'}) do |f| %>
<div class="form-group login-name">
<div class="input-group " style="margin-bottom: 12px;">
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
<%= f.email_field :email, :class => 'form-control', :placeholder => 'Email', :type => 'text' %>
</div>
<div class="form-group login">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
<%= f.password_field :password, autocomplete: "off", :class => 'form-control', :placeholder => 'Password', :type => 'password' %>
</div>
</div>
<label class="string optional remember-text" for="user_remember_me">
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
</label>
<button type="submit" class="btn btn-primary btn-block">Sign in</button>
<%= link_to 'Forgot Email/Password?', new_password_path(:user) %>
</div>
<% end %>
</ul> <!--dropdown-menu -->
</div> <!-- dropdown -->
CSS
#welcome_dropdown_toggle{
margin-right:15px;
float: right;
height: 50px;
width: 150px;
border-radius: 6px;
border: none;
background-color: white;
font-size: 25px;
font-weight: bold;
text-align: center;
padding: 8px;
}
#welcome_dropdown_toggle:hover{
color:#2b2625;
}
#welcome_page_dropdown{
padding: 15px;
padding-bottom: 15px;
margin-top: 70px;
margin-right:15px;
}
Edit 1
To troubleshoot, I started removing random classes and IDs from the divs. This resulted in the dropdown covering part of the "sign-in" button. Interestingly, I could click on the covered area of the button but nowhere else.
Thanks in advance