mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Remove Bootstrap version 3 (#27420)
* Remove bootstrap-3 entrypoint * Rename bootstrap-5 entrypoint to bootstrap * Restore entrypoints * Remove `bootstrap-5` and `bootstrap-3` entrypoints and a single `bootstrap.ts` file is now the default entrypoint * Update `bootstrap-5` component imports to `bootstrap` * Update `bootstrap-5` CSS imports to `bootstrap` * Remove the `isBootstrap5` utility * Remove `bootstrapVersion` * Remove `ol-bootstrapVersion` * Remove getCssThemeModifier * Update path and rename * Source format * Remove Bootstrap v3 and Bootstrap v5 alias npm packages * Remove bootstrap argument * Remove unused files * Update with the latest split tests * Remove remaining bootstrap5PageStatus * Update path GitOrigin-RevId: 7acda2f80114d2de8699e1f06729a2a29218e284
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { isBootstrap5 } from './bootstrap-5'
|
||||
|
||||
export function disableElement(el) {
|
||||
if (isBootstrap5() && el.tagName.toLowerCase() === 'a') {
|
||||
if (el.tagName.toLowerCase() === 'a') {
|
||||
el.classList.add('disabled')
|
||||
} else {
|
||||
el.disabled = true
|
||||
@@ -10,7 +8,7 @@ export function disableElement(el) {
|
||||
}
|
||||
|
||||
export function enableElement(el) {
|
||||
if (isBootstrap5() && el.tagName.toLowerCase() === 'a') {
|
||||
if (el.tagName.toLowerCase() === 'a') {
|
||||
el.classList.remove('disabled')
|
||||
} else {
|
||||
el.disabled = false
|
||||
|
||||
Reference in New Issue
Block a user