Merge pull request #224 from RubenPX/bugfix/fix-clickable-lots
FIX: clickable lots selector not working when click in text
This commit is contained in:
commit
9e47cd967c
|
@ -200,8 +200,9 @@ async function processSelectedDevices() {
|
||||||
*/
|
*/
|
||||||
manage(event, lotID, deviceListID) {
|
manage(event, lotID, deviceListID) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const indeterminate = event.srcElement.indeterminate;
|
const srcElement = event.srcElement.parentElement.children[0]
|
||||||
const checked = !event.srcElement.checked;
|
const indeterminate = srcElement.indeterminate;
|
||||||
|
const checked = !srcElement.checked;
|
||||||
|
|
||||||
var found = this.list.filter(list => list.lotID == lotID)[0];
|
var found = this.list.filter(list => list.lotID == lotID)[0];
|
||||||
var foundIndex = found != undefined ? this.list.findLastIndex(x => x.lotID == found.lotID) : -1;
|
var foundIndex = found != undefined ? this.list.findLastIndex(x => x.lotID == found.lotID) : -1;
|
||||||
|
@ -343,6 +344,7 @@ async function processSelectedDevices() {
|
||||||
}
|
}
|
||||||
|
|
||||||
doc.children[0].addEventListener('mouseup', (ev) => actions.manage(ev, lotID, selectedDevicesIDs));
|
doc.children[0].addEventListener('mouseup', (ev) => actions.manage(ev, lotID, selectedDevicesIDs));
|
||||||
|
doc.children[1].addEventListener('mouseup', (ev) => actions.manage(ev, lotID, selectedDevicesIDs));
|
||||||
elementTarget.append(doc);
|
elementTarget.append(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue