Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit box erroneously keeps edit state across reloads. #17

Open
Imisnew2 opened this issue Mar 22, 2022 · 0 comments
Open

Edit box erroneously keeps edit state across reloads. #17

Imisnew2 opened this issue Mar 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Imisnew2
Copy link

If you perform the following actions /load thisaddon > /reload thisaddon > /reload thisaddon, then the edit state from the before the addon was reloaded will persist once you start typing in the box again.

local ui = require('core.ui')

local edit_state = ui.edit_state()
edit_state.text = 'Edit me!'

ui.display(function()
    ui.window(window_state, function(layout)
        layout:size(200,100):edit(edit_state)
        layout:size(200,100):label(edit_state.text)
    end)
end)
@Nifim Nifim transferred this issue from Windower/packages Dec 23, 2022
@alphaONE2 alphaONE2 added the bug Something isn't working label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants