diff --git a/scripts/extract-attributes.js b/scripts/extract-attributes.js index 4b9482db..8409d58f 100644 --- a/scripts/extract-attributes.js +++ b/scripts/extract-attributes.js @@ -55,7 +55,10 @@ const attributeMap = supportedAttributes.reduce((map, reactAttribute) => { * descriptions and supported elements. */ function extractAttributes($) { - const $table = $('#Attribute_list').next('table'); + const $table = $('#Attribute_list').parent().find('table'); + if($table.length !== 1) { + throw new Error('page structure changed at ' + htmlURL); + } const attributes = {}; $table.find('tbody tr').each((i, row) => { diff --git a/scripts/generate-components.js b/scripts/generate-components.js index 0eecc1f0..d2e1a0da 100644 --- a/scripts/generate-components.js +++ b/scripts/generate-components.js @@ -192,6 +192,9 @@ function generatePropTypes(element, attributes) { component_name: PropTypes.string, }), + /** + * Dash-assigned callback that gets fired when the element is clicked. + */ 'setProps': PropTypes.func` }