Skip to content

Commit

Permalink
Merge pull request capricorn86#770 from btea/task/729-convert-input-v…
Browse files Browse the repository at this point in the history
…alue

capricorn86#729@patch: Convert input value to string.
  • Loading branch information
capricorn86 committed Feb 21, 2023
2 parents 634dd99 + 99a785d commit e1fb3ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ export default class HTMLInputElement extends HTMLElement implements IHTMLInputE
* @param value Value.
*/
public set value(value: string) {
// The value maybe not string, so we need to convert it to string
value = String(value);
switch (this.type) {
case 'hidden':
case 'submit':
Expand Down

0 comments on commit e1fb3ee

Please sign in to comment.