Ho rivisto il codice , effettivamente sembra ci fosse un bug che ho riscontrato solo su Firefox.
codice:
const select = document.getElementById('idtpCircolazione')
const ref = document.getElementById('cdSezi')
const optionI = Array
.from(select.children)
.filter(option => option.value == 'I')
const optionL = Array
.from(select.children)
.filter(option => option.value == 'L')
function controllaMovimentiInve() {
ref.value == 'REF.'
? optionI[0].selected = true
: optionI[0].selected = false
ref.value == 'L'
? optionL[0].selected = true
: optionL[0].selected = false
}
controllaMovimentiInve()
ref.addEventListener('input', controllaMovimentiInve)