Closed shawnbot closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/sfds/formio-sfds/7jb07hyr7
✅ Preview: https://formio-sfds-git-states-and-territories.sfds.vercel.app
This updates our list of U.S. states in the
state
component to include territories (D.C., American Samoa, Guam, Puerto Rico, Virgin Islands. The list comes courtesy of the "us" npm module, and there's a script that regenerates the JSON for our state component from the list, should it ever need to change:I've also removed the unnecessary
<span>
elements from the option templates; added snapshot tests for thestate
andzip
components; and added a snippet to the snapshot test suite that triggers the redrawing ofselect
component values, which are not added in the initial render, and which causes the<option>
elements to be included in the HTML snapshots.