Skip to content
Snippets Groups Projects
Verified Commit 6e64287f authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3305706 by znerol, SandeepSingh199, ivnish, smustgrave, Spokje, økse,...

Issue #3305706 by znerol, SandeepSingh199, ivnish, smustgrave, Spokje, økse, ranjith_kumar_k_u, coffeemakr, DavorHorvacki: Uncaught TypeError: this.$pluginSelect.find(...)[0] is undefined

(cherry picked from commit d6689fcb)
parent e233ae42
No related branches found
No related tags found
11 merge requests!8506Draft: Issue #3456536 by ibrahim tameme,!5646Issue #3350972 by nod_: [random test failure]...,!5600Issue #3350972 by nod_: [random test failure]...,!5343Issue #3305066 by quietone, Rename RedirectLeadingSlashesSubscriber,!3603#ISSUE 3346218 Add a different message on edit comment,!3555Issue #2473873: Views entity operations lack cacheability support, resulting in incorrect dropbuttons,!3494Issue #3327018 by Spokje, longwave, xjm, mondrake: Update PHPStan to 1.9.3 and...,!3410Issue #3340128: UserLoginForm::submitForm has some dead code,!3389Issue #3325184 by Spokje, andypost, xjm, smustgrave: $this->configFactory is...,!3381Issue #3332363: Refactor Claro's menus-and-lists stylesheet,!3307Issue #3326193: CKEditor 5 can grow past the viewport when there is a lot of content
......@@ -365,10 +365,14 @@
// disabled previously. Pseudo-fields do not have default formatters,
// we just return to 'visible' for those.
if (this.region === 'hidden') {
const pluginSelect =
typeof this.$pluginSelect.find('option')[0] !== 'undefined'
? this.$pluginSelect.find('option')[0].value
: undefined;
const value =
typeof this.defaultPlugin !== 'undefined'
? this.defaultPlugin
: this.$pluginSelect.find('option')[0].value;
: pluginSelect;
if (typeof value !== 'undefined') {
if (this.$pluginSelect.length) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment