@ctzhian/tiptap 2.12.1 → 2.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -157,7 +157,10 @@ export var AttachmentContent = function AttachmentContent(_ref) {
|
|
|
157
157
|
}, isPdf && /*#__PURE__*/React.createElement(Box, {
|
|
158
158
|
component: "a",
|
|
159
159
|
href: attrs.url,
|
|
160
|
-
target: "_blank"
|
|
160
|
+
target: "_blank",
|
|
161
|
+
onClick: function onClick(e) {
|
|
162
|
+
return e.stopPropagation();
|
|
163
|
+
}
|
|
161
164
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
162
165
|
size: "small",
|
|
163
166
|
sx: {
|
|
@@ -172,7 +175,10 @@ export var AttachmentContent = function AttachmentContent(_ref) {
|
|
|
172
175
|
component: "a",
|
|
173
176
|
href: attrs.url,
|
|
174
177
|
target: "_blank",
|
|
175
|
-
download: attrs.title
|
|
178
|
+
download: attrs.title,
|
|
179
|
+
onClick: function onClick(e) {
|
|
180
|
+
return e.stopPropagation();
|
|
181
|
+
}
|
|
176
182
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
177
183
|
size: "small",
|
|
178
184
|
sx: {
|
|
@@ -192,7 +198,10 @@ export var AttachmentContent = function AttachmentContent(_ref) {
|
|
|
192
198
|
'data-title': attrs.title,
|
|
193
199
|
'data-type': attrs.type
|
|
194
200
|
}, {
|
|
195
|
-
sx: inlineStyles
|
|
201
|
+
sx: inlineStyles,
|
|
202
|
+
onClick: function onClick(e) {
|
|
203
|
+
return e.stopPropagation();
|
|
204
|
+
}
|
|
196
205
|
}), editable ? /*#__PURE__*/React.createElement(Box, {
|
|
197
206
|
component: 'span',
|
|
198
207
|
sx: {
|