', () => {
element.find('div.fd-popover__popper div.fd-time').getDOMNode().attributes['data-sample'].value
).toBe('Sample');
});
+
+ test('should allow props to be spread to the TimePicker component\'s Popover component', () => {
+ const element = mount(
);
+
+ expect(
+ element.find('div.fd-popover').at(1).getDOMNode().attributes['data-sample'].value
+ ).toBe('Sample');
+ });
});
});
diff --git a/src/_playground/documentation/Properties/_PropertyDescription.js b/src/_playground/documentation/Properties/_PropertyDescription.js
index b25b5f3d2..85bd92e52 100644
--- a/src/_playground/documentation/Properties/_PropertyDescription.js
+++ b/src/_playground/documentation/Properties/_PropertyDescription.js
@@ -1,11 +1,11 @@
import PropTypes from 'prop-types';
import React from 'react';
-import ReactMarkdown from 'react-markdown';
+import ReactMarkdown from 'react-markdown/with-html';
const PropertyDescription = ({ description }) => (
-
+
);
diff --git a/src/_playground/documentation/Properties/defaults.js b/src/_playground/documentation/Properties/defaults.js
index d0685d5cd..d28474a8b 100644
--- a/src/_playground/documentation/Properties/defaults.js
+++ b/src/_playground/documentation/Properties/defaults.js
@@ -15,7 +15,7 @@ export const defaultPropDescriptions = {
onChange: 'Callback function when the change event fires on the component.',
onClick: 'Callback function when user clicks on the component.',
placeholder: 'Localized placeholder text of the input.',
- popoverProps: 'Additional props to be spread to the `Popover` component.',
+ popoverProps: 'Additional props to be spread to the [Popover](/popover) component.',
readOnly: 'Set to **true** to mark component as readonly.',
size: 'Size of the component.',
title: 'Localized text for the heading.',