For React, you must do more than that. fill_in field, with: '' makes native.clear . Which is not very good with React. Like not fill_in field, with: 'some text' . Since it does arguments[0].value = '' before entering text.
I ran into problems with react-datetime . I decided that this is:
def fill_in_react_datetime n, options with = options[:with] == '' ? '' : format_date(options[:with]) fill_in n, with: with, fill_options: {clear: [[:control, 'a'], :delete]} end
source share