File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -733,11 +733,13 @@ field[ns.ui('Classifier').uri] = function (
733733 checkOptions
734734 )
735735 // Set readonly if not editable
736- if ( selectElement && selectElement . querySelector && selectElement . querySelector ( 'select' ) ) {
737- const select = selectElement . querySelector ( 'select' ) ;
738- if ( select && ! kb . updater . editable ( dataDoc . uri ) ) {
739- select . disabled = true ;
740- select . style = style . textInputStyleUneditable ;
736+ if ( selectElement && selectElement . querySelectorAll ) {
737+ const selects = selectElement . querySelectorAll ( 'select' )
738+ if ( selects . length && ! kb . updater . editable ( dataDoc . uri ) ) {
739+ selects . forEach ( select => {
740+ select . readOnly = true
741+ select . style = style . textInputStyleUneditable
742+ } )
741743 }
742744 }
743745 selectBox . appendChild ( selectElement )
You can’t perform that action at this time.
0 commit comments