fix(browser-extension): bad query selector due changes
This commit is contained in:
parent
e25d18adc9
commit
912b0f2037
@ -224,7 +224,7 @@ async function submitButtonClickHandler(event) {
|
|||||||
const dialog = document.getElementById(reportDialogId);
|
const dialog = document.getElementById(reportDialogId);
|
||||||
const formView = dialog?.getElementsByClassName('report-dialog-form-view')[0];
|
const formView = dialog?.getElementsByClassName('report-dialog-form-view')[0];
|
||||||
const issueButton = dialog?.getElementsByClassName('report-dialog-issue-button')[0];
|
const issueButton = dialog?.getElementsByClassName('report-dialog-issue-button')[0];
|
||||||
const option = dialog?.querySelector('report-dialog-radio[aria-checked="true"]');
|
const option = dialog?.querySelector('.report-dialog-radio[aria-checked="true"]');
|
||||||
const reasonIndex = option?.dataset.value;
|
const reasonIndex = option?.dataset.value;
|
||||||
const reason = Number.isNaN(reasonIndex) ? 'Unknown' : reasons[reasonIndex];
|
const reason = Number.isNaN(reasonIndex) ? 'Unknown' : reasons[reasonIndex];
|
||||||
const submitView = dialog?.getElementsByClassName('report-dialog-submit-view')[0];
|
const submitView = dialog?.getElementsByClassName('report-dialog-submit-view')[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user