I am using Materialize.css for the current project, and I have a drop-down list with some input forms inside it.
In the drop-down list there is an opportunity to close:
.dropdown-content
.dropdown-button
I need to not close when I click inside it, because I need to be able to fill out input forms and other actions.
Here is a simple example
A quick fix would be to stop Propagation on clicking on the content wrapper.
$('.dropdown-button + .dropdown-content').on('click', function(event) { event.stopPropagation(); });
"dropdown" . , .
, :
$('#first_name').click(function (event) { event.stopPropagation(); //Do whatever you want });
, first_name. , .
first_name
Source: https://habr.com/ru/post/1656773/More articles:image_dim_ordering - what am I missing here? - kerasPDFView setNeedsDisplay: YES not working on MacOS Sierra 10.12 - objective-cQuestions regarding fs in node.js - javascriptCassandra LeveledCompactionStrategy and High SSTable Read Value - cassandraCharles SSL Proxy works for Chrome but not for applications - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1656774/how-to-detect-angle-change-in-js-given-a-continuous-touch-input&usg=ALkJrhghY7cQW99O6UJyU4cnmnJTS_jAoQHow to run Gulp ESLint in HTML JS script tag - javascriptHow to see numeric representation in binary floating point format - javaSpark Java job scheduling - javaget the number of days from given dates in the php array - dateAll Articles