Refactor language menu and dom utils (#32450)
1. Make `queryElem*` functions could correctly handle TS types 2. Remove some legacy jQuery $ calls (introduce fomanticQuery for Fomantic UI only) 3. Fix some TS typing problems
This commit is contained in:
parent
35bcd667b2
commit
0f397ae09b
10 changed files with 70 additions and 62 deletions
|
@ -1,3 +1,4 @@
|
|||
import $ from 'jquery';
|
||||
let ariaIdCounter = 0;
|
||||
|
||||
export function generateAriaId() {
|
||||
|
@ -16,3 +17,6 @@ export function linkLabelAndInput(label, input) {
|
|||
label.setAttribute('for', id);
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-jquery/variable-pattern
|
||||
export const fomanticQuery = $;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue