mirror of
https://github.com/jquery/jquery.git
synced 2026-02-19 01:34:29 -05:00
Fixed #1714 by adding a default empty string if the value is falsey.
This commit is contained in:
@@ -396,7 +396,7 @@ jQuery.fn = jQuery.prototype = {
|
||||
|
||||
// Everything else, we just grab the value
|
||||
} else
|
||||
return this[0].value.replace(/\r/g, "");
|
||||
return (this[0].value || "").replace(/\r/g, "");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user