Revert "Make buttons in a modal form have proper type. (#25446)" (#25485)
There is a side effect because some modal doesn't have a proper "ok"
button.
This reverts commit a954c93a68072042aa7dad717b6fa002c83a58fb.
authored by