Skip to content

Instantly share code, notes, and snippets.

@kerrishotts
Created October 13, 2021 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerrishotts/c134102235e38da4ad478467dc3252ef to your computer and use it in GitHub Desktop.
Save kerrishotts/c134102235e38da4ad478467dc3252ef to your computer and use it in GitHub Desktop.
Setting UXP textfield value manual workaround
const numberField = document.querySelector("sp-textfield[type=number]");
numberField.value = `${numberOfSteps}`; /* template literals will work */
numberField.value = "" + numberOfSteps; /* or you can do this. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment