Created
October 13, 2021 22:18
-
-
Save kerrishotts/1c6f8ca699b0db39d3095f198e1d50a5 to your computer and use it in GitHub Desktop.
UXP setting sp-textfield value issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numberField = document.querySelector("sp-textfield[type=number]"); | |
numberField.value = 10; /* won't work; field will be blank */ | |
numberField.value = "10"; /* will work. */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment