@@ -543,7 +543,7 @@ export var MapMLLayer = L.Layer.extend({
543
543
fieldset . setAttribute ( "aria-grabbed" , "false" ) ;
544
544
545
545
fieldset . onmousedown = ( downEvent ) => {
546
- if ( downEvent . target . tagName . toLowerCase ( ) === "input" ) return ;
546
+ if ( downEvent . target . tagName . toLowerCase ( ) === "input" || downEvent . target . tagName . toLowerCase ( ) === "select" ) return ;
547
547
downEvent . preventDefault ( ) ;
548
548
let control = fieldset ,
549
549
controls = fieldset . parentNode ,
@@ -630,9 +630,8 @@ export var MapMLLayer = L.Layer.extend({
630
630
id = '#' + mapmlInput . getAttribute ( 'id' ) ;
631
631
// don't add it again if it is referenced > once
632
632
if ( mapmlInput . tagName . toLowerCase ( ) === 'select' && ! frag . querySelector ( id ) ) {
633
- // generate a <details><summary></summary><input...></details>
634
- var userfieldset = document . createElement ( 'fieldset' ) ,
635
- selectdetails = document . createElement ( 'details' ) ,
633
+ // generate a <details><summary></summary><select...></details>
634
+ var selectdetails = document . createElement ( 'details' ) ,
636
635
selectsummary = document . createElement ( 'summary' ) ,
637
636
selectSummaryLabel = document . createElement ( 'label' ) ;
638
637
selectSummaryLabel . innerText = mapmlInput . getAttribute ( 'name' ) ;
@@ -641,8 +640,7 @@ export var MapMLLayer = L.Layer.extend({
641
640
selectsummary . appendChild ( selectSummaryLabel ) ;
642
641
selectdetails . appendChild ( selectsummary ) ;
643
642
selectdetails . appendChild ( mapmlInput . htmlselect ) ;
644
- userfieldset . appendChild ( selectdetails ) ;
645
- frag . appendChild ( userfieldset ) ;
643
+ frag . appendChild ( selectdetails ) ;
646
644
}
647
645
}
648
646
}
0 commit comments