Example of bug saving within the VSCode-dropdown component in a Webview.
- Open
package.json
and run the commandinstall:all
to install all necessary packages for the project. - Open
package.json
and run the commandbuild:webview
to package the project. - Press
F5
to enter the debugging window, pressCtrl+Shift+P
to open the VSCode command box, entervscode:Show VscodeDropdown Bug
, and the dropdown component bug reproduction page will appear. test1
corresponds to a normal dropdown component.test2
andtest3
correspond to the components where the bug occurs.- After entering the page for the first time, select the component corresponding to
test3
and select the third valueTurn on low side switches
, which corresponds to the value of2
. Press the shortcut keyCtrl+S
to save the value. The value changes to1
, but should be2
. - The bug only exists when saving for the first time. After saving once, the bug does not occur again.