Skip to content

Commit cadd327

Browse files
committed
Add jQuery 3 compatibility
`removeAttr` cannot be used with boolean attributes (`required`). Instead, use `prop('required', false)`.
1 parent ed826e3 commit cadd327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typeahead/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@
223223
.removeData()
224224
.css(www.css.hint)
225225
.css(getBackgroundStyles($input))
226-
.prop('readonly', true)
227-
.removeAttr('id name placeholder required')
226+
.prop({ readonly: true, required: false })
227+
.removeAttr('id name placeholder')
228228
.attr({ spellcheck: 'false', tabindex: -1 });
229229
}
230230

0 commit comments

Comments
 (0)