Skip to content

Commit

Permalink
Merge pull request #780 from ShevArtV/master
Browse files Browse the repository at this point in the history
Исправил неточность в описании параметров события si:send:before
  • Loading branch information
ShevArtV authored Jul 23, 2024
2 parents 7890988 + 1c1389e commit 66a3e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/sendit/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ document.addEventListener('si:init', (e) => {
::: details Пример использования
```js:line-numbers
document.addEventListener('si:send:before', (e) => {
const {action, target, params, headers, method, Sending} = e.detail;
const {action, target, fetchOptions, headers, Sending} = e.detail;
// не будем отправлять код подтверждения пока длина номера телефона меньше 11 символов
if(target.name === 'phone' && target.value.length < 11){
Expand Down

0 comments on commit 66a3e8d

Please sign in to comment.