Closed Bug 1234824 Opened 10 years ago Closed 8 years ago

ToggleButton: checked property is not displayed after removing from toolbar and adding again

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: rona.zona, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 Build ID: 20151210085006 Steps to reproduce: User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 Build ID: 20151210085006 package.json (default) Just add a toggle button to the index.js. index.js: const {ToggleButton} = require('sdk/ui/button/toggle'); let buttonOptions = { id: "test-button", label: "Test Button", icon: { "16": "./icon-16.png", "32": "./icon-32.png", "64": "./icon-64.png" } }; let button = ToggleButton(buttonOptions); In Firefox: click button (The button is now displayed as checked) open menu > Customize remove button (drag button from toolbar to "Additional Tools and Features") add button (drag button from "Additional Tools and Features" to toolbar) Exit Customize ---- One interesting thing is that the bug does not appear if the button is not checked before removing and adding the button. Actual results: The button is not displayed as checked. This does not change even if the the button is clicked multiple times. Which means that the checked property is no longer shown at all. Expected results: The button should be displayed as checked.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.