Project

General

Profile

Actions

Bug #84801

closed

TYPO3/CMS/Backend/ValueSlider does not initialize sliders added after requiring the js module

Added by Jakob Berlin almost 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2018-04-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Form
Complexity:
Is Regression:
Sprint Focus:

Description

I've a model which has an inline model defined which itself uses slider to setup a value. When add the first inline object slider is shown. Add a second one will not show the slider anymore :(

base model

'type' => 'inline',

inline model

'slider' => [
                    'step' => 1,
                    'width' => 200,
                ],

Actions #1

Updated by Georg Ringer almost 6 years ago

is it because there are 2 slider items or because the 2nd is inside an inline relation?

Actions #2

Updated by B. Kausch about 4 years ago

  • Category set to Backend JavaScript
  • Target version set to next-patchlevel
  • TYPO3 Version changed from 8 to 9

I can confirm this for Version 9 too. The main problem is the javascript module TYPO3/CMS/Backend/ValueSlider. Once it was required (at loadtime or later when some inline record is added, which needs the module), it can only initialize those sliders currently present on the page. When you add a second inline record with a slider input, nothing triggers the init process...

Actions #3

Updated by B. Kausch about 4 years ago

  • Subject changed from multiple slider | inline | TCA | Backend to TYPO3/CMS/Backend/ValueSlider does not initialize sliders added after requiring the js module
Actions #4

Updated by Gerrit Code Review about 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63598

Actions #5

Updated by Andreas Fernandez about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF