mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-14 00:59:06 +00:00
Resolve "Can't scroll timezones when setting a date field"
This commit is contained in:
parent
922a77d88f
commit
2c7d363861
2 changed files with 12 additions and 2 deletions
changelog/entries/unreleased/bug
web-frontend/modules/database/components/field
8
changelog/entries/unreleased/bug/3041_.json
Normal file
8
changelog/entries/unreleased/bug/3041_.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"type": "bug",
|
||||||
|
"message": "Fixed unscrollable timezone dropdown issue when creating/editing a field.",
|
||||||
|
"domain": "database",
|
||||||
|
"issue_number": 3041,
|
||||||
|
"bullet_points": [],
|
||||||
|
"created_at": "2025-03-10"
|
||||||
|
}
|
|
@ -75,7 +75,8 @@
|
||||||
:add-empty-item="false"
|
:add-empty-item="false"
|
||||||
:initial-display-name="defaultValues.date_force_timezone"
|
:initial-display-name="defaultValues.date_force_timezone"
|
||||||
:fetch-on-open="true"
|
:fetch-on-open="true"
|
||||||
:debounce-time="100"
|
:debounce-time="20"
|
||||||
|
:page-size="pageSize"
|
||||||
:fixed-items="true"
|
:fixed-items="true"
|
||||||
@input="(timezone) => (values.date_force_timezone = timezone)"
|
@input="(timezone) => (values.date_force_timezone = timezone)"
|
||||||
></PaginatedDropdown>
|
></PaginatedDropdown>
|
||||||
|
@ -141,6 +142,7 @@ export default {
|
||||||
date_force_timezone: null,
|
date_force_timezone: null,
|
||||||
date_force_timezone_offset: null,
|
date_force_timezone_offset: null,
|
||||||
},
|
},
|
||||||
|
pageSize: 100,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -187,7 +189,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchTimezonePage(page, search) {
|
fetchTimezonePage(page, search) {
|
||||||
const pageSize = 20
|
const pageSize = this.pageSize
|
||||||
const start = (page - 1) * pageSize
|
const start = (page - 1) * pageSize
|
||||||
const results = this.filterTimezones(search || '')
|
const results = this.filterTimezones(search || '')
|
||||||
// The paginate dropdown expects a HTTP response-like object with these properties
|
// The paginate dropdown expects a HTTP response-like object with these properties
|
||||||
|
|
Loading…
Add table
Reference in a new issue