PlutoUI.jl icon indicating copy to clipboard operation
PlutoUI.jl copied to clipboard

Fix CounterButton initial value

Open yha opened this issue 2 years ago • 1 comments

Fixes a double update when a cell defining CounterButton refreshes. I also changed the tests to catch this kind of problem, but I'm not sure if that's the right fix. Pluto ignores initial_value if there is a Base.get, but the docs for initial_value seem to say it shouldn't. So maybe this should be fixed in Pluto instead?

yha avatar Aug 02 '22 13:08 yha

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/yha/PlutoUI.jl", rev="counter-button-init")
julia> using PlutoUI

Or run this code in your browser: Run with binder

github-actions[bot] avatar Aug 02 '22 13:08 github-actions[bot]