You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Test
form:
fields:
tabs:
type: tabs
active: 1
fields:
test:
type: tab
title: Test
fields:
header.thisworks:
name: thisworks
type: range
label: Range outside list
default: 0
validate:
min: 0
max: 10
header.thisdoesnot:
name: test
type: list
label: List
fields:
.range:
name: range
type: range
label: Range in list
default: 0
validate:
min: 0
max: 10
Go to Admin > Pages > Add page, and add a page with the previous template
In the 'List' list, click on 'Add item'
In the 'Range in list' range, move the range.
Current behavior:
The range value does not change.
Expected behavior:
The range value changes according to the range.
Additional information:
Even though the range value is not updated in the UI, once you save it's populated correctly. Also, when you edit the page again, the range works as expected. It's just not working for new pages.
If you have a range outside of a list, the range works as expected.
The text was updated successfully, but these errors were encountered:
This was actually never compatible with lists. The only JS it has is an inline oninput which is definitely not great. I think this just was a bad PR we merged in years and years ago.
I'll rework this a bit better and make it compatible with lists.
Grav version: 1.7.5
Admin Panel version: 1.10.3
How to reproduce:
Current behavior:
The range value does not change.
Expected behavior:
The range value changes according to the range.
Additional information:
Even though the range value is not updated in the UI, once you save it's populated correctly. Also, when you edit the page again, the range works as expected. It's just not working for new pages.
If you have a range outside of a list, the range works as expected.
The text was updated successfully, but these errors were encountered: