Skip to content

Select onchange and apply #141

@DOWEBGit

Description

@DOWEBGit

There is a strange behavior with 'change' events on selects.

Essentially, when I click on the selects, the content changes successfully. However, if I then click on other buttons that also modify the content, including the 'selected="selected"' option, initially the selected options visibly change. But subsequently, upon clicking the buttons again, the selects do not change the selected option.

I've included three screenshots: the initial HTML situation, the result after clicking the button and the resulting HTML after the server applies changes.

The HTML has been modified correctly, but as you can see in the browser, the previous option remains. I've also tried with 'valueDiffing: true/false', but it doesn't make a difference.

I made an area where you can see the issue, go to http://temp6.fo7.doweb.site/admin

user@user.user
useruser

then go to http://temp6.fo7.doweb.site/admin/private/pagesinternal/pages?UGFnaW5lSW50ZXJuZUlkPTQ1

open console

then for example select 2023 and select "Gennaio"

now click the double angle left and right -> you can see "2019" -> it should be "2023" like in the console

in the screen you can see.

initial state

1-before

response from server

2-fromserver

applied result

3-after-apply

what I see in the browser

4-browser-result

thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions