forked from MapComplete/MapComplete
SimpleAddUi: scroll to top if a preset is chosen
This commit is contained in:
parent
77a19d33f8
commit
452bf39561
5 changed files with 40 additions and 17 deletions
|
@ -72,10 +72,10 @@ export default class DefaultGUI {
|
|||
const newPointDialogIsShown = new UIEventSource<boolean>(false);
|
||||
const addNewPoint = new ScrollableFullScreen(
|
||||
() => hasPresets ? Translations.t.general.add.title : Translations.t.notes.createNoteTitle,
|
||||
() => {
|
||||
({resetScrollSignal}) => {
|
||||
let addNew = undefined;
|
||||
if (hasPresets) {
|
||||
addNew = new SimpleAddUI(newPointDialogIsShown, filterViewIsOpened, state);
|
||||
addNew = new SimpleAddUI(newPointDialogIsShown, resetScrollSignal, filterViewIsOpened, state);
|
||||
}
|
||||
let addNote = undefined;
|
||||
if (noteLayer !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue