From e78e596f1389528b155c1482ce25b98154c7e771 Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 29 Apr 2022 16:45:36 -0400 Subject: [PATCH] Fix #2797: Chips add KeyFilter support --- api-generator/components/chips.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/api-generator/components/chips.js b/api-generator/components/chips.js index fcc0701b7b..b9fecc7769 100644 --- a/api-generator/components/chips.js +++ b/api-generator/components/chips.js @@ -82,7 +82,13 @@ const ChipsProps = [ type: 'function', default: 'null', description: 'Template function to return the content of a chip.' - } + }, + { + name: 'keyfilter', + type: 'string/regex', + default: 'null', + description: 'Format definition of the keys to block.' + }, ]; const ChipsEvents = [ @@ -150,7 +156,18 @@ const ChipsEvents = [ description: 'Browser event' } ] - } + }, + { + name: 'onKeyDown', + description: 'Callback to invoke when the key pressed.', + arguments: [ + { + name: 'originalEvent', + type: 'object', + description: 'Browser event' + } + ] + }, ]; const ChipsStyles = [